mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-17 20:51:39 +00:00
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>
This commit is contained in:
parent
2bf22a5431
commit
7b490cf34a
1 changed files with 2 additions and 3 deletions
|
@ -49,7 +49,6 @@ static int write_word (flash_info_t *info, ulong dest, ulong data);
|
||||||
|
|
||||||
unsigned long flash_init(void)
|
unsigned long flash_init(void)
|
||||||
{
|
{
|
||||||
unsigned long size;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
/* Init: no FLASHes known */
|
/* Init: no FLASHes known */
|
||||||
|
@ -57,7 +56,7 @@ unsigned long flash_init(void)
|
||||||
flash_info[i].flash_id = FLASH_UNKNOWN;
|
flash_info[i].flash_id = FLASH_UNKNOWN;
|
||||||
|
|
||||||
/* for now, only support the 4 MB Flash SIMM */
|
/* 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]);
|
&flash_info[0]);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -80,7 +79,7 @@ unsigned long flash_init(void)
|
||||||
CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1, &flash_info[0]);
|
CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1, &flash_info[0]);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return /*size */ (CONFIG_SYS_FLASH0_SIZE * 1024 * 1024);
|
return CONFIG_SYS_FLASH0_SIZE * 1024 * 1024;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------
|
/*-----------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Reference in a new issue