net/mlx5e: remove napi_hash_del() calls
Calling napi_hash_del() after netif_napi_del() is pointless. Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Saeed Mahameed <saeedm@mellanox.com> Acked-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bb07fafaec
commit
d30d9ccbfa
@ -1533,7 +1533,6 @@ err_close_icosq_cq:
|
|||||||
|
|
||||||
err_napi_del:
|
err_napi_del:
|
||||||
netif_napi_del(&c->napi);
|
netif_napi_del(&c->napi);
|
||||||
napi_hash_del(&c->napi);
|
|
||||||
kfree(c);
|
kfree(c);
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
@ -1554,9 +1553,6 @@ static void mlx5e_close_channel(struct mlx5e_channel *c)
|
|||||||
mlx5e_close_cq(&c->icosq.cq);
|
mlx5e_close_cq(&c->icosq.cq);
|
||||||
netif_napi_del(&c->napi);
|
netif_napi_del(&c->napi);
|
||||||
|
|
||||||
napi_hash_del(&c->napi);
|
|
||||||
synchronize_rcu();
|
|
||||||
|
|
||||||
kfree(c);
|
kfree(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user