summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-10-17 17:04:44 +0200
committerBjorn Helgaas <bhelgaas@google.com>2016-11-11 22:51:35 +0100
commit5b23e8fa46ca037e0f61df919e8a08659c0e7640 (patch)
tree721e19406486600a9fb98a5a76481133153a7e4b /drivers/pci
parentLinux 4.9-rc1 (diff)
downloadlinux-5b23e8fa46ca037e0f61df919e8a08659c0e7640.tar.xz
linux-5b23e8fa46ca037e0f61df919e8a08659c0e7640.zip
PCI: vmd: 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 <weiyongjun1@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Keith Busch <keith.busch@intel.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/host/vmd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/host/vmd.c b/drivers/pci/host/vmd.c
index 37e29b580be3..6614b3552b9c 100644
--- a/drivers/pci/host/vmd.c
+++ b/drivers/pci/host/vmd.c
@@ -719,7 +719,6 @@ static void vmd_remove(struct pci_dev *dev)
struct vmd_dev *vmd = pci_get_drvdata(dev);
vmd_detach_resources(vmd);
- pci_set_drvdata(dev, NULL);
sysfs_remove_link(&vmd->dev->dev.kobj, "domain");
pci_stop_root_bus(vmd->bus);
pci_remove_root_bus(vmd->bus);