diff options
author | Richard Knutsson <ricknu-0@student.ltu.se> | 2008-02-05 01:27:41 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 12:44:09 -0500 |
commit | cfd4734c1e686164c87b9f31b67401cdf6f34238 (patch) | |
tree | 790ff6b56600b187c5c85ed661069559fe57a59b /drivers/net/pcmcia | |
parent | c61f26fa609f11a471a68668b838b7366b2b75e0 (diff) |
pcmcia/fmvj18x_cs: fix 'shadow variable' warning
Fixing:
CHECK drivers/net/pcmcia/fmvj18x_cs.c
drivers/net/pcmcia/fmvj18x_cs.c:1205:6: warning: symbol 'i' shadows an earlier one
drivers/net/pcmcia/fmvj18x_cs.c:1179:9: originally declared here
Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/net/pcmcia')
-rw-r--r-- | drivers/net/pcmcia/fmvj18x_cs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/pcmcia/fmvj18x_cs.c b/drivers/net/pcmcia/fmvj18x_cs.c index 7cb22531082d..8f328a03847b 100644 --- a/drivers/net/pcmcia/fmvj18x_cs.c +++ b/drivers/net/pcmcia/fmvj18x_cs.c | |||
@@ -1198,8 +1198,7 @@ static void set_rx_mode(struct net_device *dev) | |||
1198 | outb(1, ioaddr + RX_MODE); /* Ignore almost all multicasts. */ | 1198 | outb(1, ioaddr + RX_MODE); /* Ignore almost all multicasts. */ |
1199 | } else { | 1199 | } else { |
1200 | struct dev_mc_list *mclist; | 1200 | struct dev_mc_list *mclist; |
1201 | int i; | 1201 | |
1202 | |||
1203 | memset(mc_filter, 0, sizeof(mc_filter)); | 1202 | memset(mc_filter, 0, sizeof(mc_filter)); |
1204 | for (i = 0, mclist = dev->mc_list; mclist && i < dev->mc_count; | 1203 | for (i = 0, mclist = dev->mc_list; mclist && i < dev->mc_count; |
1205 | i++, mclist = mclist->next) { | 1204 | i++, mclist = mclist->next) { |