sfc: remove napi_hash_del() call
authorEric Dumazet <[email protected]>
Wed, 16 Nov 2016 14:01:47 +0000 (06:01 -0800)
committerDavid S. Miller <[email protected]>
Wed, 16 Nov 2016 22:04:49 +0000 (17:04 -0500)
Calling napi_hash_del() after netif_napi_del() is pointless.

Signed-off-by: Eric Dumazet <[email protected]>
Cc: Edward Cree <[email protected]>
Cc: Bert Kenward <[email protected]>
Acked-by: Bert Kenward <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/sfc/efx.c

index 649bc508fa4b9ea42aa08331c50335e1a51f9259..52ca0404c49121f1c86126ab7d443b1144f20720 100644 (file)
@@ -2113,10 +2113,9 @@ static void efx_init_napi(struct efx_nic *efx)
 
 static void efx_fini_napi_channel(struct efx_channel *channel)
 {
-       if (channel->napi_dev) {
+       if (channel->napi_dev)
                netif_napi_del(&channel->napi_str);
-               napi_hash_del(&channel->napi_str);
-       }
+
        channel->napi_dev = NULL;
 }