mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 08:08:54 +00:00
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
1 changed files with 0 additions and 4 deletions
|
@ -1533,7 +1533,6 @@ static int mlx5e_open_channel(struct mlx5e_priv *priv, int ix,
|
|||
|
||||
err_napi_del:
|
||||
netif_napi_del(&c->napi);
|
||||
napi_hash_del(&c->napi);
|
||||
kfree(c);
|
||||
|
||||
return err;
|
||||
|
@ -1554,9 +1553,6 @@ static void mlx5e_close_channel(struct mlx5e_channel *c)
|
|||
mlx5e_close_cq(&c->icosq.cq);
|
||||
netif_napi_del(&c->napi);
|
||||
|
||||
napi_hash_del(&c->napi);
|
||||
synchronize_rcu();
|
||||
|
||||
kfree(c);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue