summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2011-11-09 10:03:55 -0600
committerKumar Gala <galak@kernel.crashing.org>2011-11-11 07:49:01 -0600
commit9ccfed20dae7b2668a82087f40303d85771bb833 (patch)
tree5178ec66cb34c44ca845b998cae8a1467586a73e /drivers
parentebba0d4bc5a0fd4eda2d19493a8a81f4f8a9497b (diff)
downloadu-boot-imx-9ccfed20dae7b2668a82087f40303d85771bb833.zip
u-boot-imx-9ccfed20dae7b2668a82087f40303d85771bb833.tar.gz
u-boot-imx-9ccfed20dae7b2668a82087f40303d85771bb833.tar.bz2
drivers/net/fm/fm.c: Fix GCC 4.6 build warning
Fix: fm.c: In function 'fm_init_common': fm.c:398:6: warning: variable 'n' set but not used [-Wunused-but-set-variable] Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/fm/fm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/fm/fm.c b/drivers/net/fm/fm.c
index 23ef14b..846c372 100644
--- a/drivers/net/fm/fm.c
+++ b/drivers/net/fm/fm.c
@@ -395,7 +395,6 @@ int fm_init_common(int index, struct ccsr_fman *reg)
int dev = CONFIG_SYS_MMC_ENV_DEV;
void *addr = malloc(CONFIG_SYS_FMAN_FW_LENGTH);
u32 cnt = CONFIG_SYS_FMAN_FW_LENGTH / 512;
- u32 n;
u32 blk = CONFIG_SYS_QE_FW_IN_MMC / 512;
struct mmc *mmc = find_mmc_device(CONFIG_SYS_MMC_ENV_DEV);
@@ -405,7 +404,7 @@ int fm_init_common(int index, struct ccsr_fman *reg)
printf("\nMMC read: dev # %u, block # %u, count %u ...\n",
dev, blk, cnt);
mmc_init(mmc);
- n = mmc->block_dev.block_read(dev, blk, cnt, addr);
+ (void)mmc->block_dev.block_read(dev, blk, cnt, addr);
/* flush cache after read */
flush_cache((ulong)addr, cnt * 512);
}