aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-10-21 11:12:38 +0900
committerDavid S. Miller <davem@davemloft.net>2013-10-21 17:21:01 -0400
commit3ee785f88ea5bc8b14ed16fb8b5682c6762f1c27 (patch)
tree97ed51e3c5c5af324c4c7cdcb2a05263504dbaa2
parentnet: fealnx: remove unnecessary pci_set_drvdata() (diff)
downloadlinux-dev-3ee785f88ea5bc8b14ed16fb8b5682c6762f1c27.tar.xz
linux-dev-3ee785f88ea5bc8b14ed16fb8b5682c6762f1c27.zip
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>
-rw-r--r--drivers/net/ethernet/icplus/ipg.c1
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 = {