]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
Merge branches 'pci/domain' and 'pci/hotplug' into next
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 29 Dec 2014 16:09:19 +0000 (09:09 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 29 Dec 2014 16:09:19 +0000 (09:09 -0700)
* pci/domain:
  ARM/PCI: Move to generic PCI domains
  CNS3xxx: Remove artificial dependency on pci_sys_data domain.
  PCI: Move domain assignment from arm64 to generic code

* pci/hotplug:
  PCI: Delete unnecessary NULL pointer checks

drivers/pci/hotplug/cpci_hotplug_core.c

index a5a7fd8332ac1cb7557285298d2824a05f127f00..46db29395a62b0cdec6400f7bc4d8e781b604592 100644 (file)
@@ -214,8 +214,7 @@ static void release_slot(struct hotplug_slot *hotplug_slot)
 
        kfree(slot->hotplug_slot->info);
        kfree(slot->hotplug_slot);
-       if (slot->dev)
-               pci_dev_put(slot->dev);
+       pci_dev_put(slot->dev);
        kfree(slot);
 }