diff options
author | Bo Chen <chenbo@pdx.edu> | 2018-05-24 22:48:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-25 23:35:45 +0300 |
commit | a45675796a0763f5e0ffb75496c3865e961560d3 (patch) | |
tree | f8196adb5bb91adf227d24914c826134762597d3 /drivers | |
parent | a527af9cbdb7f58d47983776cb07c414b71a2cd6 (diff) | |
download | linux-a45675796a0763f5e0ffb75496c3865e961560d3.tar.xz |
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: Bo Chen <chenbo@pdx.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/realtek/8139too.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/realtek/8139too.c b/drivers/net/ethernet/realtek/8139too.c index d118da5a10a2..ffd68a7bc9e1 100644 --- a/drivers/net/ethernet/realtek/8139too.c +++ b/drivers/net/ethernet/realtek/8139too.c @@ -1104,7 +1104,6 @@ static int rtl8139_init_one(struct pci_dev *pdev, return 0; err_out: - netif_napi_del(&tp->napi); __rtl8139_cleanup_dev (dev); pci_disable_device (pdev); return i; @@ -1119,7 +1118,6 @@ static void rtl8139_remove_one(struct pci_dev *pdev) assert (dev != NULL); cancel_delayed_work_sync(&tp->thread); - netif_napi_del(&tp->napi); unregister_netdev (dev); |