powerpc/pci: Remove duplicate check in pcibios_fixup_bus()
authorGavin Shan <shangw@linux.vnet.ibm.com>
Wed, 31 Jul 2013 08:43:56 +0000 (16:43 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 04:57:36 +0000 (14:57 +1000)
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>
arch/powerpc/kernel/pci-common.c

index 22fe40140e43ffd1f419ed3b247f605804b2473b..ec6c9db7b392b93f9db839280a3b67e9b2037bbf 100644 (file)
@@ -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);