Skip to content

Commit

Permalink
sfc: remove napi_hash_del() call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Nov 16, 2016
1 parent a23a8f5 commit 973334a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/net/ethernet/sfc/efx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 973334a

Please sign in to comment.