aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/s2io.c
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2009-02-14 06:14:31 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-17 20:21:14 -0500
commit8d668bfef68b35f7eedcc70fd5c47cdb24f406cc (patch)
treeca5f40a37db82923f40fa16fdc7fd37a5f6177d1 /drivers/net/s2io.c
parent5b5103ec2dba07a15861e81cb783dd0fbaed24ed (diff)
drivers/net/s2io.c: fix sparse warning: symbol shadows an earlier one
Impact: Remove redundant inner scope variable. Fix this sparse warning: drivers/net/s2io.c:7223:21: warning: symbol 'i' shadows an earlier one drivers/net/s2io.c:7184: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/s2io.c')
-rw-r--r--drivers/net/s2io.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c
index 5cd2291bc0bc..16868b7a5d0a 100644
--- a/drivers/net/s2io.c
+++ b/drivers/net/s2io.c
@@ -7220,7 +7220,6 @@ static int s2io_card_up(struct s2io_nic * sp)
7220 7220
7221 /* Initialise napi */ 7221 /* Initialise napi */
7222 if (config->napi) { 7222 if (config->napi) {
7223 int i;
7224 if (config->intr_type == MSI_X) { 7223 if (config->intr_type == MSI_X) {
7225 for (i = 0; i < sp->config.rx_ring_num; i++) 7224 for (i = 0; i < sp->config.rx_ring_num; i++)
7226 napi_enable(&sp->mac_control.rings[i].napi); 7225 napi_enable(&sp->mac_control.rings[i].napi);