arch/arm/lib/board.c: fix warning: variable ... set but not used
authorWolfgang Denk <wd@denx.de>
Wed, 5 Oct 2011 20:44:43 +0000 (22:44 +0200)
committerWolfgang Denk <wd@denx.de>
Sun, 9 Oct 2011 21:24:48 +0000 (23:24 +0200)
Fix:
board.c:445:8: warning: variable 'bd' set but not used [-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
arch/arm/lib/board.c

index 705d4d2f69f4255546cce7271bd3d5271da0bb14..1fe3751fc3f524cb5fa438d4b69ab75e587bd072 100644 (file)
@@ -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 */
 
@@ -517,7 +515,7 @@ void board_init_r(gd_t *id, ulong dest_addr)
 
 #ifdef CONFIG_GENERIC_MMC
        puts("MMC:   ");
-       mmc_initialize(bd);
+       mmc_initialize(gd->bd);
 #endif
 
 #ifdef CONFIG_HAS_DATAFLASH