From: Jingoo Han Date: Tue, 10 Dec 2013 03:49:34 +0000 (+0900) Subject: net: fddi: remove unnecessary pci_set_drvdata() X-Git-Tag: accepted/tizen/common/20141203.182822~719^2~532 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49f74ed6da4d70adc81be36f4dde22fa23f28171;p=platform%2Fkernel%2Flinux-arm64.git net: fddi: 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/fddi/skfp/skfddi.c b/drivers/net/fddi/skfp/skfddi.c index 713d303..d5f5812 100644 --- a/drivers/net/fddi/skfp/skfddi.c +++ b/drivers/net/fddi/skfp/skfddi.c @@ -351,7 +351,6 @@ static void skfp_remove_one(struct pci_dev *pdev) free_netdev(p); pci_disable_device(pdev); - pci_set_drvdata(pdev, NULL); } /*