From: Jiang Liu Date: Wed, 29 May 2013 00:04:46 +0000 (-0600) Subject: PCI/ACPI: Combine duplicate adjacent "if" tests X-Git-Tag: upstream/snapshot3+hdmi~4789^2~8^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=516ca22307df6ba972e9719ec756a356187cdde7;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git PCI/ACPI: Combine duplicate adjacent "if" tests [bhelgaas: split out from acpi_pci_roots removal] Signed-off-by: Jiang Liu Signed-off-by: Bjorn Helgaas --- diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c index 1dd6f6c..eb09053 100644 --- a/drivers/acpi/pci_root.c +++ b/drivers/acpi/pci_root.c @@ -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;