diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-10-17 20:17:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-18 00:03:28 -0400 |
commit | 559e31146007e264ca9daed1067f66e6725cea2f (patch) | |
tree | 8194ea75b143e11df5dccd65104c619bc6535cd2 /drivers | |
parent | 5cda73b68ebf7e08586d61e6777e64e12df23f07 (diff) |
net: typhoon: 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: David Dillow <dave@thedillows.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/3com/typhoon.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/3com/typhoon.c b/drivers/net/ethernet/3com/typhoon.c index 144942f6372b..465cc7108d8a 100644 --- a/drivers/net/ethernet/3com/typhoon.c +++ b/drivers/net/ethernet/3com/typhoon.c | |||
@@ -2525,7 +2525,6 @@ typhoon_remove_one(struct pci_dev *pdev) | |||
2525 | pci_release_regions(pdev); | 2525 | pci_release_regions(pdev); |
2526 | pci_clear_mwi(pdev); | 2526 | pci_clear_mwi(pdev); |
2527 | pci_disable_device(pdev); | 2527 | pci_disable_device(pdev); |
2528 | pci_set_drvdata(pdev, NULL); | ||
2529 | free_netdev(dev); | 2528 | free_netdev(dev); |
2530 | } | 2529 | } |
2531 | 2530 | ||