diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2015-10-08 14:58:56 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-10-21 20:42:14 +1100 |
commit | 00ba05a12b3c9ee398235e03ad4bece7f836ada5 (patch) | |
tree | e08d7aa5015ecfda0acf062dead0227731ec8a7c /tools/perf/scripts/python/export-to-postgresql.py | |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions