Patchwork [U-Boot,01/13] drivers/block/sym53c8xx.c: Fix GCC 4.6 build warning

login
register
mail settings
Submitter Wolfgang Denk
Date Nov. 9, 2011, 7:28 p.m.
Message ID <1320866946-28235-1-git-send-email-wd@denx.de>
Download mbox | patch
Permalink /patch/124665/
State Accepted
Commit 878d6b48f9412db9ea44bc49887b69e8c05c7edb
Headers show

Comments

Wolfgang Denk - Nov. 9, 2011, 7:28 p.m.
Fix:
sym53c8xx.c: In function 'scsi_write_dsp':
sym53c8xx.c:456:16: warning: variable 'val' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
---
 drivers/block/sym53c8xx.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
Wolfgang Denk - Nov. 16, 2011, 8:01 p.m.
Dear Wolfgang Denk,

In message <1320866946-28235-1-git-send-email-wd@denx.de> you wrote:
> Fix:
> sym53c8xx.c: In function 'scsi_write_dsp':
> sym53c8xx.c:456:16: warning: variable 'val' set but not used
> [-Wunused-but-set-variable]
> 
> Signed-off-by: Wolfgang Denk <wd@denx.de>
> ---
>  drivers/block/sym53c8xx.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/drivers/block/sym53c8xx.c b/drivers/block/sym53c8xx.c
index 8094b41..564aa98 100644
--- a/drivers/block/sym53c8xx.c
+++ b/drivers/block/sym53c8xx.c
@@ -453,11 +453,9 @@  void scsi_int_enable(void)
 
 void scsi_write_dsp(unsigned long start)
 {
-	unsigned long val;
 #ifdef SCSI_SINGLE_STEP
 	unsigned char t;
 #endif
-	val = start;
 	out32r(scsi_mem_addr + DSP,start);
 #ifdef SCSI_SINGLE_STEP
 	t=scsi_read_byte(DCNTL);