summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/smsc
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-10-22 08:19:53 +0400
committerDavid S. Miller <davem@davemloft.net>2013-10-22 10:11:53 +0400
commit215081f35320658e2a6d4d629d8aa5d58702773a (patch)
tree7f632d332c1d97451c29a4dcfcc967a5acfff74f /drivers/net/ethernet/smsc
parentbe2f54badfa9ca4af3ef4161fff3ad7fff8e4d65 (diff)
downloadlinux-215081f35320658e2a6d4d629d8aa5d58702773a.tar.xz
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')
-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)
if (!dev)
return;
- pci_set_drvdata(pdev, NULL);
-
pd = netdev_priv(dev);
unregister_netdev(dev);