From: Gavin Shan Date: Wed, 31 Jul 2013 08:43:56 +0000 (+0800) Subject: powerpc/pci: Remove duplicate check in pcibios_fixup_bus() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1a85d66bcc90e2cbdf04f70d6586b82532142e85;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git powerpc/pci: Remove duplicate check in pcibios_fixup_bus() pci_read_bridge_bases() already checks if the PCI bus is root bus or not, so we needn't do same check in pcibios_fixup_bus() and just remove it. Signed-off-by: Gavin Shan Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index 22fe40140e43..ec6c9db7b392 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c @@ -1055,8 +1055,7 @@ void pcibios_fixup_bus(struct pci_bus *bus) * bases. This is -not- called when generating the PCI tree from * the OF device-tree. */ - if (bus->self != NULL) - pci_read_bridge_bases(bus); + pci_read_bridge_bases(bus); /* Now fixup the bus bus */ pcibios_setup_bus_self(bus);