]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
drivers/net/e2100.c: fix sparse warning: symbol shadows an earlier one
authorHannes Eder <hannes@hanneseder.net>
Sat, 14 Feb 2009 11:12:10 +0000 (11:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Feb 2009 01:21:08 +0000 (17:21 -0800)
commitf11bf7a31e9a3dccf893e0fceeb1d7d9fd4dfcb4
tree7af989aef3b69410222288286566248da080fabc
parent1256f7394cc08c60d4502a2f08d7260f3fd97d56
drivers/net/e2100.c: fix sparse warning: symbol shadows an earlier one

Impact: Remove redundant inner scope variable and while being at it
make use of ARRAY_SIZE instead of a hardcoded number.

Fix this sparse warning:
  drivers/net/e2100.c:219:56: warning: symbol 'i' shadows an earlier one
  drivers/net/e2100.c:181:13: originally declared here

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