aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wavelan.c
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2009-02-14 11:49:09 +0000
committerDavid S. Miller <davem@davemloft.net>2009-02-17 19:34:50 -0800
commit49c4a5dceaff63c3080b3c9d311c1c023c3003af (patch)
tree1d518d0e8b8c689435a90f810deaf0218104eaa7 /drivers/net/wireless/wavelan.c
parentb1ae1e99bd9f611f16a09c1bca2a0a38e67b88c3 (diff)
downloadkernel_samsung_smdk4412-49c4a5dceaff63c3080b3c9d311c1c023c3003af.zip
kernel_samsung_smdk4412-49c4a5dceaff63c3080b3c9d311c1c023c3003af.tar.gz
kernel_samsung_smdk4412-49c4a5dceaff63c3080b3c9d311c1c023c3003af.tar.bz2
drivers/net/wireless: fix sparse warnings: symbol shadows an earlier one
Impact: Move variable closer to usage resp. remove redundant variables resp. rename function scope variable. Fix this sparse warnings: drivers/net/wireless/airo.c:3840:29: warning: symbol 'i' shadows an earlier one drivers/net/wireless/airo.c:3751:13: originally declared here drivers/net/wireless/airo.c:3847:29: warning: symbol 'i' shadows an earlier one drivers/net/wireless/airo.c:3751:13: originally declared here drivers/net/wireless/airo.c:3861:21: warning: symbol 'i' shadows an earlier one drivers/net/wireless/airo.c:3751:13: originally declared here drivers/net/wireless/wavelan.c:43:13: warning: symbol 'irq' shadows an earlier one drivers/net/wireless/wavelan.p.h:692:17: originally declared here Signed-off-by: Hannes Eder <hannes@hanneseder.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/wavelan.c')
-rw-r--r--drivers/net/wireless/wavelan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/wavelan.c b/drivers/net/wireless/wavelan.c
index 8326793..688bdea 100644
--- a/drivers/net/wireless/wavelan.c
+++ b/drivers/net/wireless/wavelan.c
@@ -40,11 +40,11 @@ static u8 wv_irq_to_psa(int irq)
*/
static int __init wv_psa_to_irq(u8 irqval)
{
- int irq;
+ int i;
- for (irq = 0; irq < ARRAY_SIZE(irqvals); irq++)
- if (irqvals[irq] == irqval)
- return irq;
+ for (i = 0; i < ARRAY_SIZE(irqvals); i++)
+ if (irqvals[i] == irqval)
+ return i;
return -1;
}