From: Richard Knutsson Date: Tue, 5 Feb 2008 06:27:41 +0000 (-0800) Subject: pcmcia/fmvj18x_cs: fix 'shadow variable' warning X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=cfd4734c1e686164c87b9f31b67401cdf6f34238;p=openwrt%2Fstaging%2Fblogic.git 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 Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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) outb(1, ioaddr + RX_MODE); /* Ignore almost all multicasts. */ } else { struct dev_mc_list *mclist; - int i; - + memset(mc_filter, 0, sizeof(mc_filter)); for (i = 0, mclist = dev->mc_list; mclist && i < dev->mc_count; i++, mclist = mclist->next) {