net: epic100: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Tue, 22 Oct 2013 04:19:26 +0000 (13:19 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Oct 2013 06:11:53 +0000 (02:11 -0400)
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/ethernet/smsc/epic100.c

index 03b256af7ed5f8c68a75a47cea63cf8f6bc7bb2e..8c5c24a16f8a22e2cd7e78ca22ee9c9e253d38b9 100644 (file)
@@ -1535,7 +1535,6 @@ static void epic_remove_one(struct pci_dev *pdev)
        pci_release_regions(pdev);
        free_netdev(dev);
        pci_disable_device(pdev);
-       pci_set_drvdata(pdev, NULL);
        /* pci_power_off(pdev, -1); */
 }