summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-10-23 11:58:52 +0000
committerWolfgang Denk <wd@denx.de>2011-11-03 20:37:27 +0100
commita9f4fc3fe571cc99260b063ad0ff291d31bafed0 (patch)
tree8cc9b1bb8fdb0fd644bbeb154c9c7c72e1de3a5d /arch
parent24769c151ef6cd068fcd6de7f13b62f92084b4c4 (diff)
downloadu-boot-imx-a9f4fc3fe571cc99260b063ad0ff291d31bafed0.zip
u-boot-imx-a9f4fc3fe571cc99260b063ad0ff291d31bafed0.tar.gz
u-boot-imx-a9f4fc3fe571cc99260b063ad0ff291d31bafed0.tar.bz2
arch/powerpc/lib/board.c: fix build warning
Commit 1272592 "powerpc: Use getenv_ulong() in place of getenv(), strtoul" instroduced a build warning for some PPC systems: board.c: In function 'board_init_r': board.c:626: warning: unused variable 's' Fix it. Signed-off-by: Wolfgang Denk <wd@denx.de> Acked-by: Simon Glass <sjg@chromium.org> Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/lib/board.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/lib/board.c b/arch/powerpc/lib/board.c
index 508075f..3a1b375 100644
--- a/arch/powerpc/lib/board.c
+++ b/arch/powerpc/lib/board.c
@@ -625,7 +625,9 @@ void board_init_r (gd_t *id, ulong dest_addr)
{
bd_t *bd;
ulong malloc_start;
-
+#if defined(CONFIG_SYS_FLASH_CHECKSUM) || defined(CONFIG_CMD_NET)
+ char *s;
+#endif
#ifndef CONFIG_SYS_NO_FLASH
ulong flash_size;
#endif