Commit 973dc6cf authored by Hayes Wang's avatar Hayes Wang Committed by David S. Miller

r8152: remove calling netif_napi_del

Remove unnecessary use of netif_napi_del. This also avoids to call
napi_disable() after netif_napi_del().
Signed-off-by: default avatarHayes Wang <hayeswang@realtek.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 49d4b141
...@@ -5352,7 +5352,6 @@ static int rtl8152_probe(struct usb_interface *intf, ...@@ -5352,7 +5352,6 @@ static int rtl8152_probe(struct usb_interface *intf,
return 0; return 0;
out1: out1:
netif_napi_del(&tp->napi);
usb_set_intfdata(intf, NULL); usb_set_intfdata(intf, NULL);
out: out:
free_netdev(netdev); free_netdev(netdev);
...@@ -5367,7 +5366,6 @@ static void rtl8152_disconnect(struct usb_interface *intf) ...@@ -5367,7 +5366,6 @@ static void rtl8152_disconnect(struct usb_interface *intf)
if (tp) { if (tp) {
rtl_set_unplug(tp); rtl_set_unplug(tp);
netif_napi_del(&tp->napi);
unregister_netdev(tp->netdev); unregister_netdev(tp->netdev);
cancel_delayed_work_sync(&tp->hw_phy_work); cancel_delayed_work_sync(&tp->hw_phy_work);
tp->rtl_ops.unload(tp); tp->rtl_ops.unload(tp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment