diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-14 11:11:55 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-17 17:21:07 -0800 |
commit | 1256f7394cc08c60d4502a2f08d7260f3fd97d56 (patch) | |
tree | e192a84789333802f9237638d598838d87e0ec04 /drivers/net/at1700.c | |
parent | 1c10c49d83e2062b309cc88e8eb3abb05d397480 (diff) | |
download | blackbird-op-linux-1256f7394cc08c60d4502a2f08d7260f3fd97d56.tar.gz blackbird-op-linux-1256f7394cc08c60d4502a2f08d7260f3fd97d56.zip |
drivers/net/at1700.c: fix sparse warning: symbol shadows an earlier one
Impact: Move variable declaration to a more inner scope.
Fix this sparse warning:
drivers/net/at1700.c:846:21: warning: symbol 'i' shadows an earlier one
drivers/net/at1700.c:831:13: 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/at1700.c')
-rw-r--r-- | drivers/net/at1700.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/at1700.c b/drivers/net/at1700.c index 72ea6e378f8d..ced70799b898 100644 --- a/drivers/net/at1700.c +++ b/drivers/net/at1700.c @@ -828,7 +828,6 @@ set_rx_mode(struct net_device *dev) struct net_local *lp = netdev_priv(dev); unsigned char mc_filter[8]; /* Multicast hash filter */ unsigned long flags; - int i; if (dev->flags & IFF_PROMISC) { memset(mc_filter, 0xff, sizeof(mc_filter)); @@ -857,6 +856,7 @@ set_rx_mode(struct net_device *dev) spin_lock_irqsave (&lp->lock, flags); if (memcmp(mc_filter, lp->mc_filter, sizeof(mc_filter))) { + int i; int saved_bank = inw(ioaddr + CONFIG_0); /* Switch to bank 1 and set the multicast table. */ outw((saved_bank & ~0x0C00) | 0x0480, ioaddr + CONFIG_0); |