diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-10-23 16:07:51 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-23 16:58:41 -0400 |
commit | 89f45c70ee89a16932d01a97695d0094a8ee6a70 (patch) | |
tree | 20393b98b8bb0db01c06c2ac72cb6726054cd2dd /drivers/net/ethernet/tehuti | |
parent | 0956eaff8f39882491836fc1f0e7929f49ae0344 (diff) |
net: tehuti: 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/tehuti')
-rw-r--r-- | drivers/net/ethernet/tehuti/tehuti.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/tehuti/tehuti.c b/drivers/net/ethernet/tehuti/tehuti.c index 571452e786d..dd0dd6279b4 100644 --- a/drivers/net/ethernet/tehuti/tehuti.c +++ b/drivers/net/ethernet/tehuti/tehuti.c @@ -2447,7 +2447,6 @@ static void bdx_remove(struct pci_dev *pdev) iounmap(nic->regs); pci_release_regions(pdev); pci_disable_device(pdev); - pci_set_drvdata(pdev, NULL); vfree(nic); RET(); |