diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-10-21 06:09:26 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-22 01:21:00 +0400 |
commit | 3c5b9caf3237b16a9e5019f523b284f056bc4f74 (patch) | |
tree | c8c150ceb9f711302398ba85d2804a70933006cd /drivers/net/ethernet/dec/tulip/winbond-840.c | |
parent | 5eccdfaabcf44f71702ba033d9c24821111749e1 (diff) | |
download | linux-3c5b9caf3237b16a9e5019f523b284f056bc4f74.tar.xz |
net: tulip: 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/dec/tulip/winbond-840.c')
-rw-r--r-- | drivers/net/ethernet/dec/tulip/winbond-840.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/dec/tulip/winbond-840.c b/drivers/net/ethernet/dec/tulip/winbond-840.c index c7b04ecf5b49..62fe512bb216 100644 --- a/drivers/net/ethernet/dec/tulip/winbond-840.c +++ b/drivers/net/ethernet/dec/tulip/winbond-840.c @@ -468,7 +468,6 @@ static int w840_probe1(struct pci_dev *pdev, const struct pci_device_id *ent) return 0; err_out_cleardev: - pci_set_drvdata(pdev, NULL); pci_iounmap(pdev, ioaddr); err_out_free_res: pci_release_regions(pdev); @@ -1542,8 +1541,6 @@ static void w840_remove1(struct pci_dev *pdev) pci_iounmap(pdev, np->base_addr); free_netdev(dev); } - - pci_set_drvdata(pdev, NULL); } #ifdef CONFIG_PM |