diff options
author | Gavin Shan <[email protected]> | 2015-10-08 14:58:56 +1100 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2015-10-21 20:42:14 +1100 |
commit | 00ba05a12b3c9ee398235e03ad4bece7f836ada5 (patch) | |
tree | e08d7aa5015ecfda0acf062dead0227731ec8a7c /lib/netdev-notifier-error-inject.c | |
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 <[email protected]>
Reviewed-by: Andrew Donnellan <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions