Skip to contentSkip to conversation

8139too: Remove unnecessary netif_napi_del()

PATCH In review Bo Chen 2 participants 2 messages May 24, 2018 – May 25, 2018

Subsystems (2)
lore
Share & tools
lore

Bo Chen

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/ethernet/realtek/8139too.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/realtek/8139too.c +0 -2
index d118da5a10a2..ffd68a7bc9e1 100644
@@ -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);
 
Signature · 1 line
2.17.0
maintainer
#1 lore raw

From: Bo Chen <[email protected]>
Date: Thu, 24 May 2018 12:48:35 -0700

Quoted 4 lines

The call to free_netdev() in __rtl8139_cleanup_dev() clears the network device napi list, and explicit calls to netif_napi_del() are unnecessary.

Since this is just unnecessary work and not a bug, applied to net-next.

Thanks.