diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2014-11-11 05:02:17 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-11-11 05:02:17 +0100 |
commit | ff0387c3777f2438bad2088abe442c9f231b0be4 (patch) | |
tree | 8c3697b4a4f9474f1a9c06b2f36692d8436371a6 /drivers/pci/hotplug | |
parent | Linux 3.18-rc1 (diff) | |
download | linux-ff0387c3777f2438bad2088abe442c9f231b0be4.tar.xz linux-ff0387c3777f2438bad2088abe442c9f231b0be4.zip |
PCI: Delete unnecessary NULL pointer checks
The functions pci_dev_put(), pci_pme_wakeup_bus(), and put_device() return
immediately if their argument is NULL. Thus the test before the call is
not needed.
Remove these unnecessary tests.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug')
0 files changed, 0 insertions, 0 deletions