]> www.infradead.org Git - nvme.git/commitdiff
kconfig: add fallthrough comments to expr_compare_type()
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 11 Jun 2024 17:55:11 +0000 (02:55 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 15 Jul 2024 16:08:36 +0000 (01:08 +0900)
Clarify the missing 'break' is intentional.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/expr.c

index 31737b2cb8e27ec792ff0c288cad39cf8ed7c5cc..bea82d5cac83545d21182670ec2b02c8c912ba3b 100644 (file)
@@ -1083,19 +1083,24 @@ static int expr_compare_type(enum expr_type t1, enum expr_type t2)
        case E_GTH:
                if (t2 == E_EQUAL || t2 == E_UNEQUAL)
                        return 1;
+               /* fallthrough */
        case E_EQUAL:
        case E_UNEQUAL:
                if (t2 == E_NOT)
                        return 1;
+               /* fallthrough */
        case E_NOT:
                if (t2 == E_AND)
                        return 1;
+               /* fallthrough */
        case E_AND:
                if (t2 == E_OR)
                        return 1;
+               /* fallthrough */
        case E_OR:
                if (t2 == E_LIST)
                        return 1;
+               /* fallthrough */
        default:
                break;
        }