powerpc/powernv: Simplify pnv_ioda_configure_pe()
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Wed, 12 Nov 2014 02:36:09 +0000 (13:36 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 14 Nov 2014 06:24:24 +0000 (17:24 +1100)
commit4773f76b61e5cbf41ad514978d9338d8a7ed49e1
tree71971485b82eae36d14aadbe5b2bca47ae076d31
parentb131a8425c34b41ab280edc211fb026451d43264
powerpc/powernv: Simplify pnv_ioda_configure_pe()

Nested if statements are always bad and the patch avoids one by
checking PHB type and bail in advance if necessary.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda.c