PCI: Delete unnecessary NULL pointer checks
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 26 Dec 2014 23:28:08 +0000 (16:28 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 26 Dec 2014 23:28:08 +0000 (16:28 -0700)
commit17f14b51f2dc2fce2636ee49c5fbf49ff27aecb0
treed66b5b0d03a9e40ac7ba5b35cd78357092a3b24c
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
PCI: Delete unnecessary NULL pointer checks

The pci_dev_put() function tests whether its argument is NULL and then
returns immediately.  Thus the test around the call is not needed.

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>
drivers/pci/hotplug/cpci_hotplug_core.c