summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/realtek
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-10-22 13:17:58 +0900
committerDavid S. Miller <davem@davemloft.net>2013-10-22 02:11:52 -0400
commit64caa387516cba2eb382bd3f3bb9a8b918cb0d40 (patch)
treeb459cf3eb042713fe9fd66fa10629a79e4be6866 /drivers/net/ethernet/realtek
parentca30ab2cefea279d2fac64a356e0150f6d93ecbb (diff)
downloadop-kernel-dev-64caa387516cba2eb382bd3f3bb9a8b918cb0d40.zip
op-kernel-dev-64caa387516cba2eb382bd3f3bb9a8b918cb0d40.tar.gz
net: 8139too: 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/realtek')
-rw-r--r--drivers/net/ethernet/realtek/8139too.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/realtek/8139too.c b/drivers/net/ethernet/realtek/8139too.c
index 3ccedeb..50a9210 100644
--- a/drivers/net/ethernet/realtek/8139too.c
+++ b/drivers/net/ethernet/realtek/8139too.c
@@ -727,7 +727,6 @@ static void __rtl8139_cleanup_dev (struct net_device *dev)
pci_release_regions (pdev);
free_netdev(dev);
- pci_set_drvdata (pdev, NULL);
}
OpenPOWER on IntegriCloud