net/mlx5e: remove napi_hash_del() calls
authorEric Dumazet <edumazet@google.com>
Wed, 16 Nov 2016 14:21:34 +0000 (06:21 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Nov 2016 17:06:20 +0000 (12:06 -0500)
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>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c

index 52b4fd53b1a74d17b7b40efc279305fdb9ed7521..00579ce0e96fb8f992d93ddfa0e5fd58df25813a 100644 (file)
@@ -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);
 }