summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2012-03-28 04:27:54 +0000
committerAnatolij Gustschin <agust@denx.de>2012-04-14 23:03:13 +0200
commitb64c2420e02a7d068aae6e0d069f270feb3cdc9a (patch)
tree6590ddd270cdf04ddfd8b722f7a4efba9ef6972e /drivers/mtd
parent4d675ae6e733a5dba9e41fd3132431561de86006 (diff)
downloadu-boot-imx-b64c2420e02a7d068aae6e0d069f270feb3cdc9a.zip
u-boot-imx-b64c2420e02a7d068aae6e0d069f270feb3cdc9a.tar.gz
u-boot-imx-b64c2420e02a7d068aae6e0d069f270feb3cdc9a.tar.bz2
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 <agust@denx.de> Cc: Vipin Kumar <vipin.kumar@st.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/spr_smi.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mtd/spr_smi.c b/drivers/mtd/spr_smi.c
index 9a70a19..6d4257a 100644
--- a/drivers/mtd/spr_smi.c
+++ b/drivers/mtd/spr_smi.c
@@ -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;