[U-Boot] [PATCH 02/11] MIPS: board.c: fix warning if CONFIG_CMD_NET is not defined
Daniel Schwierzeck
daniel.schwierzeck at googlemail.com
Thu Nov 24 14:57:47 CET 2011
board.c: In function 'board_init_r':
board.c:280:8: warning: unused variable 's'
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck at googlemail.com>
---
arch/mips/lib/board.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/arch/mips/lib/board.c b/arch/mips/lib/board.c
index 9585db7..aac7690 100644
--- a/arch/mips/lib/board.c
+++ b/arch/mips/lib/board.c
@@ -266,7 +266,6 @@ void board_init_r(gd_t *id, ulong dest_addr)
#ifndef CONFIG_ENV_IS_NOWHERE
extern char *env_name_spec;
#endif
- char *s;
bd_t *bd;
gd = id;
@@ -347,7 +346,7 @@ void board_init_r(gd_t *id, ulong dest_addr)
/* Initialize from environment */
load_addr = getenv_ulong("loadaddr", 16, load_addr);
#if defined(CONFIG_CMD_NET)
- s = getenv("bootfile");
+ const char *s = getenv("bootfile");
if (s)
copy_filename(BootFile, s, sizeof(BootFile));
#endif
--
1.7.7.2
More information about the U-Boot
mailing list