Commit dfe8e56f authored by Masahiro Yamada's avatar Masahiro Yamada

kconfig: add fallthrough comments to expr_compare_type()

Clarify the missing 'break' is intentional.
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent cd909521
...@@ -1083,19 +1083,24 @@ static int expr_compare_type(enum expr_type t1, enum expr_type t2) ...@@ -1083,19 +1083,24 @@ static int expr_compare_type(enum expr_type t1, enum expr_type t2)
case E_GTH: case E_GTH:
if (t2 == E_EQUAL || t2 == E_UNEQUAL) if (t2 == E_EQUAL || t2 == E_UNEQUAL)
return 1; return 1;
/* fallthrough */
case E_EQUAL: case E_EQUAL:
case E_UNEQUAL: case E_UNEQUAL:
if (t2 == E_NOT) if (t2 == E_NOT)
return 1; return 1;
/* fallthrough */
case E_NOT: case E_NOT:
if (t2 == E_AND) if (t2 == E_AND)
return 1; return 1;
/* fallthrough */
case E_AND: case E_AND:
if (t2 == E_OR) if (t2 == E_OR)
return 1; return 1;
/* fallthrough */
case E_OR: case E_OR:
if (t2 == E_LIST) if (t2 == E_LIST)
return 1; return 1;
/* fallthrough */
default: default:
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