Skip to content
Snippets Groups Projects
Commit 80c6abc3 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

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: default avatarWolfgang Denk <wd@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
parent 1a9845b4
No related branches found
No related tags found
No related merge requests found
...@@ -442,14 +442,12 @@ static char *failed = "*** failed ***\n"; ...@@ -442,14 +442,12 @@ static char *failed = "*** failed ***\n";
void board_init_r(gd_t *id, ulong dest_addr) void board_init_r(gd_t *id, ulong dest_addr)
{ {
char *s; char *s;
bd_t *bd;
ulong malloc_start; ulong malloc_start;
#if !defined(CONFIG_SYS_NO_FLASH) #if !defined(CONFIG_SYS_NO_FLASH)
ulong flash_size; ulong flash_size;
#endif #endif
gd = id; gd = id;
bd = gd->bd;
gd->flags |= GD_FLG_RELOC; /* tell others: relocation done */ gd->flags |= GD_FLG_RELOC; /* tell others: relocation done */
...@@ -517,7 +515,7 @@ void board_init_r(gd_t *id, ulong dest_addr) ...@@ -517,7 +515,7 @@ void board_init_r(gd_t *id, ulong dest_addr)
#ifdef CONFIG_GENERIC_MMC #ifdef CONFIG_GENERIC_MMC
puts("MMC: "); puts("MMC: ");
mmc_initialize(bd); mmc_initialize(gd->bd);
#endif #endif
#ifdef CONFIG_HAS_DATAFLASH #ifdef CONFIG_HAS_DATAFLASH
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment