From: Julia Lawall Date: Wed, 16 Dec 2009 00:47:37 +0000 (-0800) Subject: drivers/char/ipmi: Use KCS_IDLE_STATE X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d1da96aada79fd1d29ae4e3157120d1ce1e77594;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Core Minyard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/ipmi/ipmi_kcs_sm.c b/drivers/char/ipmi/ipmi_kcs_sm.c index 80704875794c..cf82fedae099 100644 --- a/drivers/char/ipmi/ipmi_kcs_sm.c +++ b/drivers/char/ipmi/ipmi_kcs_sm.c @@ -370,7 +370,7 @@ static enum si_sm_result kcs_event(struct si_sm_data *kcs, long time) return SI_SM_IDLE; case KCS_START_OP: - if (state != KCS_IDLE) { + if (state != KCS_IDLE_STATE) { start_error_recovery(kcs, "State machine not idle at start"); break;