mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 16:10:58 +00:00
arch/arm/lib/board.c: fix warning: variable ... set but not used
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>
This commit is contained in:
parent
1a9845b4f0
commit
80c6abc306
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue