[U-Boot] [PATCH 5/9] ARM: remove unused variable

Guennadi Liakhovetski lg at denx.de
Wed Feb 4 17:59:59 CET 2009


The "size" variable in start_armboot() in lib_arm/board.c is only really 
used in
#if !defined(CONFIG_SYS_NO_FLASH)
case, remove where unused.

Signed-off-by: Guennadi Liakhovetski <lg at denx.de>
---

This one actually doesn't have to be in this series, so, it can go 
separately over the ARM tree.

 lib_arm/board.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib_arm/board.c b/lib_arm/board.c
index 964f5cc..2257b2e 100644
--- a/lib_arm/board.c
+++ b/lib_arm/board.c
@@ -287,7 +287,7 @@ void start_armboot (void)
 {
 	init_fnc_t **init_fnc_ptr;
 	char *s;
-#if !defined(CONFIG_SYS_NO_FLASH) || defined (CONFIG_VFD) || defined(CONFIG_LCD)
+#if !defined(CONFIG_SYS_NO_FLASH)
 	ulong size;
 #endif
 #if defined(CONFIG_VFD) || defined(CONFIG_LCD)
@@ -328,7 +328,7 @@ void start_armboot (void)
 	 */
 	/* bss_end is defined in the board-specific linker script */
 	addr = (_bss_end + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1);
-	size = vfd_setmem (addr);
+	vfd_setmem (addr);
 	gd->fb_base = addr;
 #endif /* CONFIG_VFD */
 
@@ -343,7 +343,7 @@ void start_armboot (void)
 		 */
 		/* bss_end is defined in the board-specific linker script */
 		addr = (_bss_end + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1);
-		size = lcd_setmem (addr);
+		lcd_setmem (addr);
 		gd->fb_base = addr;
 	}
 #endif /* CONFIG_LCD */
-- 
1.5.4



More information about the U-Boot mailing list