Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Gavin Shan and committed by
Benjamin Herrenschmidt
1a85d66b c35d2a8c

+1 -2
+1 -2
arch/powerpc/kernel/pci-common.c
··· 1055 1055 * bases. This is -not- called when generating the PCI tree from 1056 1056 * the OF device-tree. 1057 1057 */ 1058 - if (bus->self != NULL) 1059 - pci_read_bridge_bases(bus); 1058 + pci_read_bridge_bases(bus); 1060 1059 1061 1060 /* Now fixup the bus bus */ 1062 1061 pcibios_setup_bus_self(bus);