From: Hayes Wang Date: Wed, 28 Aug 2019 01:51:42 +0000 (+0800) Subject: r8152: remove calling netif_napi_del X-Git-Tag: v5.2.14~83 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=61f10b1bb84d7c21e64cf4d6ebf274a829fc850d;p=users%2Fdwmw2%2Flinux.git r8152: remove calling netif_napi_del [ Upstream commit 973dc6cfc0e2c43ff29ca5645ceaf1ae694ea110 ] Remove unnecessary use of netif_napi_del. This also avoids to call napi_disable() after netif_napi_del(). Signed-off-by: Hayes Wang Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index a2f63d10bcfe7..1a7b7bd412f9d 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -5309,7 +5309,6 @@ static int rtl8152_probe(struct usb_interface *intf, return 0; out1: - netif_napi_del(&tp->napi); usb_set_intfdata(intf, NULL); out: free_netdev(netdev); @@ -5327,7 +5326,6 @@ static void rtl8152_disconnect(struct usb_interface *intf) if (udev->state == USB_STATE_NOTATTACHED) set_bit(RTL8152_UNPLUG, &tp->flags); - netif_napi_del(&tp->napi); unregister_netdev(tp->netdev); cancel_delayed_work_sync(&tp->hw_phy_work); tp->rtl_ops.unload(tp);