[U-Boot] [PATCH 1/7] arch/arm/lib/board.c: fix warning: variable ... set but not used

Wolfgang Denk wd at denx.de
Wed Oct 5 23:17:27 CEST 2011


Fix:
board.c:445:8: warning: variable 'bd' set but not used [-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd at denx.de>
Cc: Albert ARIBAUD <albert.u.boot at aribaud.net>
---
 arch/arm/lib/board.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index 705d4d2..b266f78 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -442,14 +442,12 @@ static char *failed = "*** failed ***\n";
 void board_init_r(gd_t *id, ulong dest_addr)
 {
 	char *s;
-	bd_t *bd;
 	ulong malloc_start;
 #if !defined(CONFIG_SYS_NO_FLASH)
 	ulong flash_size;
 #endif
 
 	gd = id;
-	bd = gd->bd;
 
 	gd->flags |= GD_FLG_RELOC;	/* tell others: relocation done */
 
-- 
1.7.6.2



More information about the U-Boot mailing list