Patchwork [U-Boot,04/56] arch/powerpc/lib/board.c: fix build warning

login
register
mail settings
Submitter Wolfgang Denk
Date Nov. 5, 2011, 1:55 a.m.
Message ID <1320458160-23136-5-git-send-email-wd@denx.de>
Download mbox | patch
Permalink /patch/123737/
State Accepted
Commit 1c2931d4ecd6ef51d4d33f3375d3e3eb5c2fe0b3
Headers show

Comments

Wolfgang Denk - Nov. 5, 2011, 1:55 a.m.
Fix:
board.c: In function 'board_init_r':
board.c:633:8: warning: unused variable 's' [-Wunused-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
---
 arch/powerpc/lib/board.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
Wolfgang Denk - Nov. 7, 2011, 9:09 p.m.
Dear Wolfgang Denk,

In message <1320458160-23136-5-git-send-email-wd@denx.de> you wrote:
> Fix:
> board.c: In function 'board_init_r':
> board.c:633:8: warning: unused variable 's' [-Wunused-variable]
> 
> Signed-off-by: Wolfgang Denk <wd@denx.de>
> ---
>  arch/powerpc/lib/board.c |    3 ---
>  1 files changed, 0 insertions(+), 3 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/arch/powerpc/lib/board.c b/arch/powerpc/lib/board.c
index 35992ae..ff5888e 100644
--- a/arch/powerpc/lib/board.c
+++ b/arch/powerpc/lib/board.c
@@ -629,9 +629,6 @@  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