From: Hannes Eder Date: Sat, 14 Feb 2009 11:14:45 +0000 (+0000) Subject: drivers/net/arcnet: fix sparse warning: symbol shadows an earlier one X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=18c4c35ecbeda253ce7532a6ed7f2fa144147d64;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drivers/net/arcnet: fix sparse warning: symbol shadows an earlier one 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/arcnet/arcnet.c b/drivers/net/arcnet/arcnet.c index a80d4a30a464..d6d4ab3b430c 100644 --- a/drivers/net/arcnet/arcnet.c +++ b/drivers/net/arcnet/arcnet.c @@ -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++)