]> git.baikalelectronics.ru Git - kernel.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)
commit071e81dbaec2a82450d853ddc5ff81a0b2f919a3
treeb456632dd8f284577b6d51be6a075234bb49c4c1
parent044e7d0ed21d1ad850a3d4f18d58396e3fa1dba5
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