drivers/net/arcnet: fix sparse warning: symbol shadows an earlier one
authorHannes Eder <hannes@hanneseder.net>
Sat, 14 Feb 2009 11:14:45 +0000 (11:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Feb 2009 01:26:05 +0000 (17:26 -0800)
Impact: Remove redundant inner scope variable.

Fix this sparse warning:
  drivers/net/arcnet/arcnet.c:383:21: warning: symbol 'count' shadows an earlier one
  drivers/net/arcnet/arcnet.c:375:13: originally declared here

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/arcnet/arcnet.c

index a80d4a30a4643ae18f5902f05b8e4fc89c6fb99d..d6d4ab3b430ccf77a25fe865384f3daaa8b6b7b4 100644 (file)
@@ -380,7 +380,6 @@ int arcnet_open(struct net_device *dev)
                return -ENODEV;
 
        BUGLVL(D_PROTO) {
-               int count;
                BUGMSG(D_PROTO, "protocol map (default is '%c'): ",
                       arc_proto_default->suffix);
                for (count = 0; count < 256; count++)