net: fddi: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Tue, 10 Dec 2013 03:49:34 +0000 (12:49 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Dec 2013 03:31:32 +0000 (22:31 -0500)
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 <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fddi/skfp/skfddi.c

index 713d303a06a9e1d2ea06e198a9682beb4bc54fc2..d5f58121b2e22d9463e805ebd3547d79eb874d69 100644 (file)
@@ -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);
 }
 
 /*