From: Jingoo Han Date: Mon, 21 Oct 2013 02:12:38 +0000 (+0900) Subject: net: icplus: remove unnecessary pci_set_drvdata() X-Git-Tag: accepted/tizen/common/20141203.182822~1141^2~153^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ee785f88ea5bc8b14ed16fb8b5682c6762f1c27;p=platform%2Fkernel%2Flinux-arm64.git net: icplus: 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 --- diff --git a/drivers/net/ethernet/icplus/ipg.c b/drivers/net/ethernet/icplus/ipg.c index bdf5023..25045ae 100644 --- a/drivers/net/ethernet/icplus/ipg.c +++ b/drivers/net/ethernet/icplus/ipg.c @@ -2183,7 +2183,6 @@ static void ipg_remove(struct pci_dev *pdev) free_netdev(dev); pci_disable_device(pdev); - pci_set_drvdata(pdev, NULL); } static const struct net_device_ops ipg_netdev_ops = {