diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-10-22 13:17:27 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-22 02:11:52 -0400 |
commit | ca30ab2cefea279d2fac64a356e0150f6d93ecbb (patch) | |
tree | 5a065643efd1b7d00abc3d3c4d9ad7f796c7deda /drivers/net/ethernet/realtek | |
parent | 726a2fbe7b02ef24a4aeaef7df905148fa03ba71 (diff) | |
download | op-kernel-dev-ca30ab2cefea279d2fac64a356e0150f6d93ecbb.zip op-kernel-dev-ca30ab2cefea279d2fac64a356e0150f6d93ecbb.tar.gz |
net: 8139cp: 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/8139cp.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/realtek/8139cp.c b/drivers/net/ethernet/realtek/8139cp.c index d2e5919..f2a2128 100644 --- a/drivers/net/ethernet/realtek/8139cp.c +++ b/drivers/net/ethernet/realtek/8139cp.c @@ -2052,7 +2052,6 @@ static void cp_remove_one (struct pci_dev *pdev) pci_release_regions(pdev); pci_clear_mwi(pdev); pci_disable_device(pdev); - pci_set_drvdata(pdev, NULL); free_netdev(dev); } |