Skip to content

Commit

Permalink
drivers/net/arcnet: fix sparse warning: symbol shadows an earlier one
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hannes Eder authored and David S. Miller committed Feb 18, 2009
1 parent 8d668bf commit 18c4c35
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/arcnet/arcnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit 18c4c35

Please sign in to comment.