]> git.karo-electronics.de Git - linux-beck.git/commit
PCI: vmd: Remove unnecessary pci_set_drvdata()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 17 Oct 2016 15:04:44 +0000 (15:04 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 11 Nov 2016 21:51:35 +0000 (15:51 -0600)
commit5b23e8fa46ca037e0f61df919e8a08659c0e7640
tree721e19406486600a9fb98a5a76481133153a7e4b
parent1001354ca34179f3db924eb66672442a173147dc
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>
drivers/pci/host/vmd.c