From: Hannes Eder Date: Sat, 14 Feb 2009 11:14:31 +0000 (+0000) Subject: drivers/net/s2io.c: fix sparse warning: symbol shadows an earlier one X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8d668bfef68b35f7eedcc70fd5c47cdb24f406cc;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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) /* 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);