]> www.infradead.org Git - users/willy/linux.git/commit
kconfig: do not call check_conf() for olddefconfig
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 28 Feb 2018 00:15:21 +0000 (09:15 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 25 Mar 2018 17:03:58 +0000 (02:03 +0900)
commit59a80b5e892ddee09139f7d7942effdf1ca532e4
treeb456632dd8f284577b6d51be6a075234bb49c4c1
parentf467c5640c29ad258c3cd8186a776c82fc3b8057
kconfig: do not call check_conf() for olddefconfig

check_conf() traverses the menu tree, but it is completely no-op for
olddefconfig because the following if-else block does nothing.

    if (input_mode == listnewconfig) {
            ...
    } else if (input_mode != olddefconfig) {
            ...
    }

As the help message says, olddefconfig automatically sets new symbols
to their default value.  There is no room for manual intervention.
So, calling check_conf() for olddefconfig is odd in the first place.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Ulf Magnusson <ulfalizer@gmail.com>
scripts/kconfig/conf.c