aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/smsc/smsc9420.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-10-22 00:19:53 -0400
committerDavid S. Miller <davem@davemloft.net>2013-10-22 02:11:53 -0400
commit215081f35320658e2a6d4d629d8aa5d58702773a (patch)
tree7f632d332c1d97451c29a4dcfcc967a5acfff74f /drivers/net/ethernet/smsc/smsc9420.c
parentbe2f54badfa9ca4af3ef4161fff3ad7fff8e4d65 (diff)
net: smsc9420: 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 <jg1.han@samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/smsc/smsc9420.c')
-rw-r--r--drivers/net/ethernet/smsc/smsc9420.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/smsc/smsc9420.c b/drivers/net/ethernet/smsc/smsc9420.c
index 5f9e79f7f2df..e55e3365a306 100644
--- a/drivers/net/ethernet/smsc/smsc9420.c
+++ b/drivers/net/ethernet/smsc/smsc9420.c
@@ -1707,8 +1707,6 @@ static void smsc9420_remove(struct pci_dev *pdev)
1707 if (!dev) 1707 if (!dev)
1708 return; 1708 return;
1709 1709
1710 pci_set_drvdata(pdev, NULL);
1711
1712 pd = netdev_priv(dev); 1710 pd = netdev_priv(dev);
1713 unregister_netdev(dev); 1711 unregister_netdev(dev);
1714 1712