summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/tehuti
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-10-23 16:07:51 +0900
committerDavid S. Miller <davem@davemloft.net>2013-10-23 16:58:41 -0400
commit89f45c70ee89a16932d01a97695d0094a8ee6a70 (patch)
tree20393b98b8bb0db01c06c2ac72cb6726054cd2dd /drivers/net/ethernet/tehuti
parent0956eaff8f39882491836fc1f0e7929f49ae0344 (diff)
downloadop-kernel-dev-89f45c70ee89a16932d01a97695d0094a8ee6a70.zip
op-kernel-dev-89f45c70ee89a16932d01a97695d0094a8ee6a70.tar.gz
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.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/tehuti/tehuti.c b/drivers/net/ethernet/tehuti/tehuti.c
index 571452e..dd0dd627 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();
OpenPOWER on IntegriCloud