Commit 1569d9e8 authored by Richard Knutsson's avatar Richard Knutsson Committed by Linus Torvalds

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: default avatarRichard Knutson <ricknu-0@student.ltu.se>
Acked-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 52debb06
...@@ -696,7 +696,7 @@ static void tc574_reset(struct net_device *dev) ...@@ -696,7 +696,7 @@ static void tc574_reset(struct net_device *dev)
mdio_write(ioaddr, lp->phys, 4, lp->advertising); mdio_write(ioaddr, lp->phys, 4, lp->advertising);
if (!auto_polarity) { if (!auto_polarity) {
/* works for TDK 78Q2120 series MII's */ /* 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); mdio_write(ioaddr, lp->phys, 16, i);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment