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>
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;