]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/pseries: Cleanup on pseries_eeh_get_state()
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Thu, 8 Oct 2015 03:58:56 +0000 (14:58 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 21 Oct 2015 09:42:14 +0000 (20:42 +1100)
commit00ba05a12b3c9ee398235e03ad4bece7f836ada5
treee08d7aa5015ecfda0acf062dead0227731ec8a7c
parent872ee2d6528188c1de942dff5688f55578c1b989
powerpc/pseries: Cleanup on pseries_eeh_get_state()

This cleans up pseries_eeh_get_state(), no functional changes:

   * Return EEH_STATE_NOT_SUPPORT early when the 2nd RTAS output
     argument is zero to avoid nested if statements.
   * Skip clearing bits in the PE state represented by variable
     "result" to simplify the code.

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/platforms/pseries/eeh_pseries.c