kconfig: remove the rootmenu check in menu_add_prop()
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 17 Dec 2019 04:14:16 +0000 (13:14 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 6 Jan 2020 17:18:44 +0000 (02:18 +0900)
commitf64048a20b0ce1bb1fd5c3f80e82556db73fe08b
treebc7a7cfc2d5550f0c4e23db42f44a196113cdb2d
parentc79f46a282390e0f5b306007bf7b11a46d529538
kconfig: remove the rootmenu check in menu_add_prop()

This reverts commit ba6ff60d5eb4 ("kconfig: don't emit warning upon
rootmenu's prompt redefinition").

At that time, rootmenu.prompt was always set first, then it was set
again if a "mainmenu" statement was specified in the Kconfig file.

This is no longer the case since commit 0724a7c32a54 ("kconfig: Don't
leak main menus during parsing"). Remove the unneeded check.

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