Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 973334a1 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

sfc: remove napi_hash_del() call



Calling napi_hash_del() after netif_napi_del() is pointless.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Cc: Edward Cree <ecree@solarflare.com>
Cc: Bert Kenward <bkenward@solarflare.com>
Acked-by: default avatarBert Kenward <bkenward@solarflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a23a8f5b
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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;
}