diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-10-18 09:17:58 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-18 00:03:28 -0400 |
commit | 559e31146007e264ca9daed1067f66e6725cea2f (patch) | |
tree | 8194ea75b143e11df5dccd65104c619bc6535cd2 /drivers/net | |
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/net')
-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) pci_release_regions(pdev); pci_clear_mwi(pdev); pci_disable_device(pdev); - pci_set_drvdata(pdev, NULL); free_netdev(dev); } |