PCI/ACPI: Combine duplicate adjacent "if" tests
authorJiang Liu <jiang.liu@huawei.com>
Wed, 29 May 2013 00:04:46 +0000 (18:04 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 29 May 2013 20:35:33 +0000 (14:35 -0600)
[bhelgaas: split out from acpi_pci_roots removal]
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/acpi/pci_root.c

index 1dd6f6c8587442ab1fcbdf7d7bd78d98ef551a9b..eb09053c0fce54f2d95e45fa899182cdccb6754c 100644 (file)
@@ -536,11 +536,10 @@ static int acpi_pci_root_add(struct acpi_device *device,
        if (system_state != SYSTEM_BOOTING) {
                pcibios_resource_survey_bus(root->bus);
                pci_assign_unassigned_bus_resources(root->bus);
-       }
 
-       /* need to after hot-added ioapic is registered */
-       if (system_state != SYSTEM_BOOTING)
+               /* need to after hot-added ioapic is registered */
                pci_enable_bridges(root->bus);
+       }
 
        pci_bus_add_devices(root->bus);
        return 1;