diff options
author | Eric Dumazet <edumazet@google.com> | 2016-11-16 06:21:34 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-17 12:06:20 -0500 |
commit | d30d9ccbfac7cf9a12a088d57aaf0891732e2bca (patch) | |
tree | 86c2fa7830c4eac7f81a148c5f155aaa012f4fd3 /drivers/net/ethernet/mellanox/mlx5 | |
parent | bb07fafaec70183f1dcd3d4a1459abbc409753e2 (diff) |
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c index 52b4fd53b1a7..00579ce0e96f 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c @@ -1533,7 +1533,6 @@ err_close_icosq_cq: 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); } |