Commit a4567579 authored by Bo Chen's avatar Bo Chen Committed by David S. Miller

8139too: Remove unnecessary netif_napi_del()

The call to free_netdev() in __rtl8139_cleanup_dev() clears the network device
napi list, and explicit calls to netif_napi_del() are unnecessary.
Signed-off-by: default avatarBo Chen <chenbo@pdx.edu>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a527af9c
...@@ -1104,7 +1104,6 @@ static int rtl8139_init_one(struct pci_dev *pdev, ...@@ -1104,7 +1104,6 @@ static int rtl8139_init_one(struct pci_dev *pdev,
return 0; return 0;
err_out: err_out:
netif_napi_del(&tp->napi);
__rtl8139_cleanup_dev (dev); __rtl8139_cleanup_dev (dev);
pci_disable_device (pdev); pci_disable_device (pdev);
return i; return i;
...@@ -1119,7 +1118,6 @@ static void rtl8139_remove_one(struct pci_dev *pdev) ...@@ -1119,7 +1118,6 @@ static void rtl8139_remove_one(struct pci_dev *pdev)
assert (dev != NULL); assert (dev != NULL);
cancel_delayed_work_sync(&tp->thread); cancel_delayed_work_sync(&tp->thread);
netif_napi_del(&tp->napi);
unregister_netdev (dev); unregister_netdev (dev);
......
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