Skip to content

Commit

Permalink
net: ethernet: ti: netcp_core: no need in netif_napi_del
Browse files Browse the repository at this point in the history
Don't remove rx_napi specifically just before free_netdev(),
it's supposed to be done in it and is confusing w/o tx_napi deletion.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ivan Khoronzhuk authored and David S. Miller committed Sep 9, 2017
1 parent 0fdbedc commit e333ac1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/ethernet/ti/netcp_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2145,7 +2145,6 @@ static void netcp_delete_interface(struct netcp_device *netcp_device,

of_node_put(netcp->node_interface);
unregister_netdev(ndev);
netif_napi_del(&netcp->rx_napi);
free_netdev(ndev);
}

Expand Down

0 comments on commit e333ac1

Please sign in to comment.