From: Jingoo Han Date: Fri, 18 Oct 2013 00:17:58 +0000 (+0900) Subject: net: typhoon: remove unnecessary pci_set_drvdata() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=559e31146007e264ca9daed1067f66e6725cea2f;p=openwrt%2Fstaging%2Fblogic.git net: typhoon: 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 Acked-by: David Dillow Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/3com/typhoon.c b/drivers/net/ethernet/3com/typhoon.c index 144942f6372b..465cc7108d8a 100644 --- a/drivers/net/ethernet/3com/typhoon.c +++ b/drivers/net/ethernet/3com/typhoon.c @@ -2525,7 +2525,6 @@ typhoon_remove_one(struct pci_dev *pdev) pci_release_regions(pdev); pci_clear_mwi(pdev); pci_disable_device(pdev); - pci_set_drvdata(pdev, NULL); free_netdev(dev); }