powerpc/eeh: Reworked eeh_pe_bus_get()
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Tue, 9 Feb 2016 04:50:23 +0000 (15:50 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Mar 2016 22:57:46 +0000 (09:57 +1100)
commit4eb0799ff93b54dd40c0c5bb06f60f1eb015635b
treeccb04be812713d497dc2b5356f43e1b4fb3334ac
parentee3b93ebfbed6279f7a329001433c75c50ddfcc9
powerpc/eeh: Reworked eeh_pe_bus_get()

The original implementation is ugly: unnecessary if statements and
"out" tag. This reworks the function to avoid above weaknesses. No
functional changes introduced.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh_pe.c