diff options
author | Wolfgang Denk <wd@denx.de> | 2011-11-05 05:13:13 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-11-07 21:48:14 (GMT) |
commit | 7b490cf34aa8d30c735f82f5abaa44e026cdd529 (patch) | |
tree | 1351b52d3e2c95880b355ba12f5fd4e705e6182f | |
parent | 2bf22a54316f83942a1b6fbe5c805c90339229b4 (diff) | |
download | u-boot-fsl-qoriq-7b490cf34aa8d30c735f82f5abaa44e026cdd529.tar.xz |
board/rpxsuper/flash.c: Fix GCC 4.6 build warning
Fix:
flash.c: In function 'flash_init':
flash.c:52:19: warning: variable 'size' set but not used
[-Wunused-but-set-variable]
Signed-off-by: Wolfgang Denk <wd@denx.de>
-rw-r--r-- | board/rpxsuper/flash.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/board/rpxsuper/flash.c b/board/rpxsuper/flash.c index 724ae88..70ae1d2 100644 --- a/board/rpxsuper/flash.c +++ b/board/rpxsuper/flash.c @@ -49,7 +49,6 @@ static int write_word (flash_info_t *info, ulong dest, ulong data); unsigned long flash_init(void) { - unsigned long size; int i; /* Init: no FLASHes known */ @@ -57,7 +56,7 @@ unsigned long flash_init(void) flash_info[i].flash_id = FLASH_UNKNOWN; /* for now, only support the 4 MB Flash SIMM */ - size = flash_get_size((vu_long *) CONFIG_SYS_FLASH0_BASE, + (void)flash_get_size((vu_long *) CONFIG_SYS_FLASH0_BASE, &flash_info[0]); /* @@ -80,7 +79,7 @@ unsigned long flash_init(void) CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1, &flash_info[0]); #endif - return /*size */ (CONFIG_SYS_FLASH0_SIZE * 1024 * 1024); + return CONFIG_SYS_FLASH0_SIZE * 1024 * 1024; } /*----------------------------------------------------------------------- |