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)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 10 Feb 2019 21:04:25 +0000 (22:04 +0100)
commit2e9de4821d4aa774d999a0d217159d33ea7b6517
treeaa36b42ff11380fbacce458dfc8cea51914051db
parent841065274c724a586c2641e103618d490330aa0d
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>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
config/conf.c