summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/efx.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2016-11-16 15:01:47 +0100
committerDavid S. Miller <davem@davemloft.net>2016-11-16 23:04:49 +0100
commit973334a1d3bb4ee8b4e761e322f116f0403b26b5 (patch)
tree96096c4d3c246306afe80333b30082dd3e92b080 /drivers/net/ethernet/sfc/efx.c
parentlwtunnel: subtract tunnel headroom from mtu on output redirect (diff)
downloadlinux-973334a1d3bb4ee8b4e761e322f116f0403b26b5.tar.xz
linux-973334a1d3bb4ee8b4e761e322f116f0403b26b5.zip
sfc: remove napi_hash_del() call
Calling napi_hash_del() after netif_napi_del() is pointless. Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Edward Cree <ecree@solarflare.com> Cc: Bert Kenward <bkenward@solarflare.com> Acked-by: Bert Kenward <bkenward@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/efx.c')
-rw-r--r--drivers/net/ethernet/sfc/efx.c5
1 files changed, 2 insertions, 3 deletions
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;
}