diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-10-21 11:12:38 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-21 17:21:01 -0400 |
commit | 3ee785f88ea5bc8b14ed16fb8b5682c6762f1c27 (patch) | |
tree | 97ed51e3c5c5af324c4c7cdcb2a05263504dbaa2 /drivers/net/ethernet/icplus/ipg.c | |
parent | df2a6448e0cddd182c42e66da8b6f9b72df9133e (diff) |
net: icplus: 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/icplus/ipg.c')
-rw-r--r-- | drivers/net/ethernet/icplus/ipg.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/icplus/ipg.c b/drivers/net/ethernet/icplus/ipg.c index bdf5023724e7..25045ae07171 100644 --- a/drivers/net/ethernet/icplus/ipg.c +++ b/drivers/net/ethernet/icplus/ipg.c @@ -2183,7 +2183,6 @@ static void ipg_remove(struct pci_dev *pdev) free_netdev(dev); pci_disable_device(pdev); - pci_set_drvdata(pdev, NULL); } static const struct net_device_ops ipg_netdev_ops = { |