Commit a98f55f5 authored by Julia Lawall's avatar Julia Lawall Committed by james toy

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: default avatarJulia Lawall <julia@diku.dk>
Cc: Corey Minyard <minyard@acm.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent ffd26648
...@@ -370,7 +370,7 @@ static enum si_sm_result kcs_event(struct si_sm_data *kcs, long time) ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment