summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-10-23 11:07:51 +0400
committerDavid S. Miller <davem@davemloft.net>2013-10-24 00:58:41 +0400
commit89f45c70ee89a16932d01a97695d0094a8ee6a70 (patch)
tree20393b98b8bb0db01c06c2ac72cb6726054cd2dd /drivers/net
parent0956eaff8f39882491836fc1f0e7929f49ae0344 (diff)
downloadlinux-89f45c70ee89a16932d01a97695d0094a8ee6a70.tar.xz
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')
-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 571452e786d5..dd0dd6279b4e 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();