提交 973334a1 编写于 作者: E Eric Dumazet 提交者: David S. Miller

sfc: remove napi_hash_del() call

Calling napi_hash_del() after netif_napi_del() is pointless.
Signed-off-by: NEric Dumazet <edumazet@google.com>
Cc: Edward Cree <ecree@solarflare.com>
Cc: Bert Kenward <bkenward@solarflare.com>
Acked-by: NBert Kenward <bkenward@solarflare.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a23a8f5b
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册