From 7c015aea4fa6611c97994812c022cf6ebff9f0c7 Mon Sep 17 00:00:00 2001 From: Jingoo Han Date: Tue, 22 Oct 2013 13:18:57 +0900 Subject: net: sis190: remove unnecessary pci_set_drvdata() The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han Signed-off-by: David S. Miller --- drivers/net/ethernet/sis/sis190.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/net/ethernet/sis/sis190.c') diff --git a/drivers/net/ethernet/sis/sis190.c b/drivers/net/ethernet/sis/sis190.c index ee18e6f7b4fe..acbbe48a519c 100644 --- a/drivers/net/ethernet/sis/sis190.c +++ b/drivers/net/ethernet/sis/sis190.c @@ -1921,7 +1921,6 @@ static void sis190_remove_one(struct pci_dev *pdev) cancel_work_sync(&tp->phy_task); unregister_netdev(dev); sis190_release_board(pdev); - pci_set_drvdata(pdev, NULL); } static struct pci_driver sis190_pci_driver = { -- cgit v1.2.3