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

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

net/mlx5e: remove napi_hash_del() calls



Calling napi_hash_del() after netif_napi_del() is pointless.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Cc: Saeed Mahameed <saeedm@mellanox.com>
Acked-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bb07fafa
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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);
}