From: Eric Dumazet Date: Wed, 16 Nov 2016 14:01:47 +0000 (-0800) Subject: sfc: remove napi_hash_del() call X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=973334a1d3bb4ee8b4e761e322f116f0403b26b5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git sfc: remove napi_hash_del() call Calling napi_hash_del() after netif_napi_del() is pointless. Signed-off-by: Eric Dumazet Cc: Edward Cree Cc: Bert Kenward Acked-by: Bert Kenward Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c index 649bc508fa4b..52ca0404c491 100644 --- a/drivers/net/ethernet/sfc/efx.c +++ b/drivers/net/ethernet/sfc/efx.c @@ -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; }