diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-14 12:44:44 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-18 02:38:01 +0100 |
commit | 05076c1824a5cc164c3d714f7b16ac61cb9bbbf5 (patch) | |
tree | 40466f72321103cd082f89341248b6f4756433a5 /drivers/net/tokenring/olympic.c | |
parent | drivers/net/tokenring: fix warning: format not a string literal and no ... (diff) | |
download | linux-05076c1824a5cc164c3d714f7b16ac61cb9bbbf5.tar.xz linux-05076c1824a5cc164c3d714f7b16ac61cb9bbbf5.zip |
drivers/net/tokenring: fix sparse warning: symbol shadows an earlier one
Impact: Remove redundant variables.
Fix this sparse warnings:
drivers/net/tokenring/lanstreamer.c:619:21: warning: symbol 'i' shadows an earlier one
drivers/net/tokenring/lanstreamer.c:589:13: originally declared here
drivers/net/tokenring/madgemc.c:695:34: warning: symbol 'tp' shadows an earlier one
drivers/net/tokenring/madgemc.c:689:26: originally declared here
drivers/net/tokenring/olympic.c:702:21: warning: symbol 'i' shadows an earlier one
drivers/net/tokenring/olympic.c:440: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/tokenring/olympic.c')
-rw-r--r-- | drivers/net/tokenring/olympic.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/tokenring/olympic.c b/drivers/net/tokenring/olympic.c index 77dc9da4c0b9..d068a9d36883 100644 --- a/drivers/net/tokenring/olympic.c +++ b/drivers/net/tokenring/olympic.c @@ -699,7 +699,6 @@ static int olympic_open(struct net_device *dev) if (olympic_priv->olympic_network_monitor) { u8 __iomem *oat; u8 __iomem *opt; - int i; u8 addr[6]; oat = (olympic_priv->olympic_lap + olympic_priv->olympic_addr_table_addr); opt = (olympic_priv->olympic_lap + olympic_priv->olympic_parms_addr); |