drivers/mtd/spr_smi.c: Fix build warning
PATCH 1/1 drivers/mtd/spr_smi.c: Fix build warning
Fix:spr_smi.c: In function 'smi_write':
spr_smi.c:325:15: warning: variable 'WM' set but not used [-Wunused-but-set-variable]
Signed-off-by Anatolij Gustschin <[email protected]>
Cc Vipin Kumar <[email protected]>
--- drivers/mtd/spr_smi.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-)
drivers/mtd/spr_smi.c +0 -5
@@ -322,24 +322,19 @@ static int smi_write(unsigned int *src_addr, unsigned int *dst_addr, unsigned int length, ulong bank_addr) { int banknum; -unsigned int WM ;switch (bank_addr) {case SMIBANK0_BASE : banknum =BANK0 ; -WM =WM0 ;break ;case SMIBANK1_BASE : banknum =BANK1 ; -WM =WM1 ;break ;case SMIBANK2_BASE : banknum =BANK2 ; -WM =WM2 ;break ;case SMIBANK3_BASE : banknum =BANK3 ; -WM =WM3 ;break ;default :return -1 ;
Signature · 1 line
1.7.7.6
PATCH 1/1 drivers/mtd/spr_smi.c: Fix build warning
Quoted 10 lines · On Wed, 28 Mar 2012 16:27:54 +0200 Anatolij Gustschin <[email protected]> wrote:
Fix:
spr_smi.c: In function 'smi_write':
spr_smi.c:325:15: warning: variable 'WM' set but not used [-Wunused-but-set-variable]Signed-off-by Anatolij Gustschin <[email protected]>Cc Vipin Kumar <[email protected]>--- drivers/mtd/spr_smi.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-)
Applied to u-boot-staging/agust at denx.de.
Anatolij