commit | 00ba05a12b3c9ee398235e03ad4bece7f836ada5 | [log] [tgz] |
---|---|---|
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | Thu Oct 08 14:58:56 2015 +1100 |
committer | Michael Ellerman <mpe@ellerman.id.au> | Wed Oct 21 20:42:14 2015 +1100 |
tree | e08d7aa5015ecfda0acf062dead0227731ec8a7c | |
parent | 872ee2d6528188c1de942dff5688f55578c1b989 [diff] |
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>