From: Richard Knutsson Date: Tue, 5 Feb 2008 06:27:39 +0000 (-0800) Subject: pcmcia/3c574_cs: fix 'shadow variable' warning X-Git-Tag: v2.6.25-rc1~1034 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1569d9e89a77d51750497dc23d303e27d0d9494d;p=linux-2.6-omap-h63xx.git pcmcia/3c574_cs: fix 'shadow variable' warning Fixing: CHECK drivers/net/pcmcia/3c574_cs.c drivers/net/pcmcia/3c574_cs.c:695:7: warning: symbol 'i' shadows an earlier one drivers/net/pcmcia/3c574_cs.c:636:6: originally declared here Signed-off-by: Richard Knutson Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/net/pcmcia/3c574_cs.c b/drivers/net/pcmcia/3c574_cs.c index dafbbdbc4bf..3b78a3819bb 100644 --- a/drivers/net/pcmcia/3c574_cs.c +++ b/drivers/net/pcmcia/3c574_cs.c @@ -696,7 +696,7 @@ static void tc574_reset(struct net_device *dev) mdio_write(ioaddr, lp->phys, 4, lp->advertising); if (!auto_polarity) { /* works for TDK 78Q2120 series MII's */ - int i = mdio_read(ioaddr, lp->phys, 16) | 0x20; + i = mdio_read(ioaddr, lp->phys, 16) | 0x20; mdio_write(ioaddr, lp->phys, 16, i); }