diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-10-21 06:16:38 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-22 01:21:02 +0400 |
commit | 4f12b2f573c5f7ed83e750a40da64ca14767fb91 (patch) | |
tree | 1e0f1a22da3d95455ef238652716e7891f9c6967 /drivers/net/ethernet/neterion/s2io.c | |
parent | e146aaa62f3675a4bf14e86772514e650e110d9b (diff) | |
download | linux-4f12b2f573c5f7ed83e750a40da64ca14767fb91.tar.xz |
net: neterion: 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>
Acked-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/neterion/s2io.c')
-rw-r--r-- | drivers/net/ethernet/neterion/s2io.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/neterion/s2io.c b/drivers/net/ethernet/neterion/s2io.c index 51b00941302c..9eeddbd0b2c7 100644 --- a/drivers/net/ethernet/neterion/s2io.c +++ b/drivers/net/ethernet/neterion/s2io.c @@ -8185,7 +8185,6 @@ mem_alloc_failed: free_shared_mem(sp); pci_disable_device(pdev); pci_release_regions(pdev); - pci_set_drvdata(pdev, NULL); free_netdev(dev); return ret; @@ -8221,7 +8220,6 @@ static void s2io_rem_nic(struct pci_dev *pdev) iounmap(sp->bar0); iounmap(sp->bar1); pci_release_regions(pdev); - pci_set_drvdata(pdev, NULL); free_netdev(dev); pci_disable_device(pdev); } |