ARM: remove unused variable
The "size" variable in start_armboot() in lib_arm/board.c is only really used in "#ifndef CONFIG_SYS_NO_FLASH" case, and even there it can be eliminated (thanks to Jean-Christophe PLAGNIOL-VILLARD for a suggestion.) Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
This commit is contained in:
parent
9d8811c5bd
commit
05fd887764
|
@ -287,9 +287,6 @@ void start_armboot (void)
|
||||||
{
|
{
|
||||||
init_fnc_t **init_fnc_ptr;
|
init_fnc_t **init_fnc_ptr;
|
||||||
char *s;
|
char *s;
|
||||||
#if !defined(CONFIG_SYS_NO_FLASH) || defined (CONFIG_VFD) || defined(CONFIG_LCD)
|
|
||||||
ulong size;
|
|
||||||
#endif
|
|
||||||
#if defined(CONFIG_VFD) || defined(CONFIG_LCD)
|
#if defined(CONFIG_VFD) || defined(CONFIG_LCD)
|
||||||
unsigned long addr;
|
unsigned long addr;
|
||||||
#endif
|
#endif
|
||||||
|
@ -315,8 +312,7 @@ void start_armboot (void)
|
||||||
|
|
||||||
#ifndef CONFIG_SYS_NO_FLASH
|
#ifndef CONFIG_SYS_NO_FLASH
|
||||||
/* configure available FLASH banks */
|
/* configure available FLASH banks */
|
||||||
size = flash_init ();
|
display_flash_config (flash_init ());
|
||||||
display_flash_config (size);
|
|
||||||
#endif /* CONFIG_SYS_NO_FLASH */
|
#endif /* CONFIG_SYS_NO_FLASH */
|
||||||
|
|
||||||
#ifdef CONFIG_VFD
|
#ifdef CONFIG_VFD
|
||||||
|
@ -328,7 +324,7 @@ void start_armboot (void)
|
||||||
*/
|
*/
|
||||||
/* bss_end is defined in the board-specific linker script */
|
/* bss_end is defined in the board-specific linker script */
|
||||||
addr = (_bss_end + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1);
|
addr = (_bss_end + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1);
|
||||||
size = vfd_setmem (addr);
|
vfd_setmem (addr);
|
||||||
gd->fb_base = addr;
|
gd->fb_base = addr;
|
||||||
#endif /* CONFIG_VFD */
|
#endif /* CONFIG_VFD */
|
||||||
|
|
||||||
|
@ -343,7 +339,7 @@ void start_armboot (void)
|
||||||
*/
|
*/
|
||||||
/* bss_end is defined in the board-specific linker script */
|
/* bss_end is defined in the board-specific linker script */
|
||||||
addr = (_bss_end + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1);
|
addr = (_bss_end + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1);
|
||||||
size = lcd_setmem (addr);
|
lcd_setmem (addr);
|
||||||
gd->fb_base = addr;
|
gd->fb_base = addr;
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_LCD */
|
#endif /* CONFIG_LCD */
|
||||||
|
|
Loading…
Reference in New Issue