[U-Boot,49/56] board/tqc/tqm8272/tqm8272.c: Fix GCC 4.6 build warning:

Submitted by Wolfgang Denk on Nov. 5, 2011, 1:55 a.m.

Details

Message ID 1320458160-23136-50-git-send-email-wd@denx.de
State Accepted
Commit 1f8843344221f9e7b2de598b0ccd289abb85c58d
Headers show

Commit Message

Wolfgang Denk Nov. 5, 2011, 1:55 a.m.
Fix:
tqm8272.c: In function 'initdram':
tqm8272.c:462:14: warning: variable 'lsize' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
---
 board/tqc/tqm8272/tqm8272.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Comments

Wolfgang Denk Nov. 7, 2011, 9:16 p.m.
Dear Wolfgang Denk,

In message <1320458160-23136-50-git-send-email-wd@denx.de> you wrote:
> Fix:
> tqm8272.c: In function 'initdram':
> tqm8272.c:462:14: warning: variable 'lsize' set but not used
> [-Wunused-but-set-variable]
> 
> Signed-off-by: Wolfgang Denk <wd@denx.de>
> ---
>  board/tqc/tqm8272/tqm8272.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch hide | download patch | download mbox

diff --git a/board/tqc/tqm8272/tqm8272.c b/board/tqc/tqm8272/tqm8272.c
index 9efb541..5aca227 100644
--- a/board/tqc/tqm8272/tqm8272.c
+++ b/board/tqc/tqm8272/tqm8272.c
@@ -459,10 +459,9 @@  phys_size_t initdram (int board_type)
 #ifndef CONFIG_SYS_RAMBOOT
 	long size8, size9;
 #endif
-	long psize, lsize;
+	long psize;
 
 	psize = 16 * 1024 * 1024;
-	lsize = 0;
 
 	memctl->memc_psrt = CONFIG_SYS_PSRT;
 	memctl->memc_mptpr = CONFIG_SYS_MPTPR;