kconfig: clean up nested if-conditionals in check_conf()
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 21 Feb 2021 09:26:22 +0000 (18:26 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 24 Feb 2021 06:12:06 +0000 (15:12 +0900)
commita4cff327d8533bde5bac147aaa8b09e8d835cab2
tree9889be35939b00f0b9063ae5c88148323911a9b1
parentf82bd80d37ecc6ebda389473bd8414e89bbdbe05
kconfig: clean up nested if-conditionals in check_conf()

Unify the outer two if-conditionals into one. This decreases the
indent level by one.

Also, change the if-else blocks:

    if (input_mode == listnewconfig) {
            ...
    } else if (input_mode == helpnewconfig) {
            ...
    } else {
            ...
    }

into the switch statement.

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