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)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 5 Feb 2021 10:46:35 +0000 (11:46 +0100)
commit6f72d9b3ed9adee1c766992c0119c3d28a9391a7
tree999db6e3df138b97bc1151d1725c749e5162b53b
parent0ae900bef52e9b911e1c262900f9532f8acbe58d
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>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
config/menu.c