Skip to content

Commit

Permalink
drivers/net/s2io.c: 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/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>
  • Loading branch information
Hannes Eder authored and David S. Miller committed Feb 18, 2009
1 parent 5b5103e commit 8d668bf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/s2io.c
Original file line number Diff line number Diff line change
Expand Up @@ -7220,7 +7220,6 @@ static int s2io_card_up(struct s2io_nic * sp)

/* Initialise napi */
if (config->napi) {
int i;
if (config->intr_type == MSI_X) {
for (i = 0; i < sp->config.rx_ring_num; i++)
napi_enable(&sp->mac_control.rings[i].napi);
Expand Down

0 comments on commit 8d668bf

Please sign in to comment.