mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
drivers/char/ipmi: Use KCS_IDLE_STATE
KCS_IDLE and KCS_IDLE state have the same value, but in this function the constants ending in _STATE are compared to the state variable. Signed-off-by: Julia Lawall <julia@diku.dk> Acked-by: Core Minyard <cminyard@mvista.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
9cf18e1dd7
commit
d1da96aada
1 changed files with 1 additions and 1 deletions
|
@ -370,7 +370,7 @@ static enum si_sm_result kcs_event(struct si_sm_data *kcs, long time)
|
||||||
return SI_SM_IDLE;
|
return SI_SM_IDLE;
|
||||||
|
|
||||||
case KCS_START_OP:
|
case KCS_START_OP:
|
||||||
if (state != KCS_IDLE) {
|
if (state != KCS_IDLE_STATE) {
|
||||||
start_error_recovery(kcs,
|
start_error_recovery(kcs,
|
||||||
"State machine not idle at start");
|
"State machine not idle at start");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue