net: smsc9420: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Tue, 22 Oct 2013 04:19:53 +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/smsc9420.c

index 5f9e79f7f2df52f8b6a3c1955bd7e99ba4bbb122..e55e3365a30658c793f751c11b05094256bbdf50 100644 (file)
@@ -1707,8 +1707,6 @@ static void smsc9420_remove(struct pci_dev *pdev)
        if (!dev)
                return;
 
-       pci_set_drvdata(pdev, NULL);
-
        pd = netdev_priv(dev);
        unregister_netdev(dev);