summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/cavium/thunder
diff options
context:
space:
mode:
authorWei Yongjun <weiyj.lk@gmail.com>2016-08-15 22:51:29 +0000
committerDavid S. Miller <davem@davemloft.net>2016-08-15 16:16:11 -0700
commit5288b6fff17369386e435b6780a00e3e3fd633de (patch)
treec3e5efb63d63169584a20139451012887592f2d7 /drivers/net/ethernet/cavium/thunder
parent6e22066fd02b675260b980b3e42b7d616a9839c5 (diff)
net: thunderx: 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: Wei Yongjun <weiyj.lk@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium/thunder')
-rw-r--r--drivers/net/ethernet/cavium/thunder/thunder_xcv.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/cavium/thunder/thunder_xcv.c b/drivers/net/ethernet/cavium/thunder/thunder_xcv.c
index 9210d04e4b5d..67befedef709 100644
--- a/drivers/net/ethernet/cavium/thunder/thunder_xcv.c
+++ b/drivers/net/ethernet/cavium/thunder/thunder_xcv.c
@@ -194,7 +194,6 @@ err_release_regions:
err_disable_device:
pci_disable_device(pdev);
err_kfree:
- pci_set_drvdata(pdev, NULL);
devm_kfree(dev, xcv);
xcv = NULL;
return err;
@@ -211,7 +210,6 @@ static void xcv_remove(struct pci_dev *pdev)
pci_release_regions(pdev);
pci_disable_device(pdev);
- pci_set_drvdata(pdev, NULL);
}
static struct pci_driver xcv_driver = {