kconfig: move prompt handling to menu_add_prompt() from menu_add_prop()
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 17 Dec 2019 04:14:20 +0000 (13:14 +0900)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 5 Feb 2021 10:49:03 +0000 (11:49 +0100)
commit39a24c8a3d1a17f08207d7a638a2c270575da0cc
treed330f6504af7b474aa411c08c92ac0beac287bff
parent3288b06a3654ef64c8114ee859f1598a0202e331
kconfig: move prompt handling to menu_add_prompt() from menu_add_prop()

menu_add_prompt() is the only function that calls menu_add_prop() with
non-NULL prompt.

So, the code inside the if-conditional block of menu_add_prop() can be
moved to menu_add_prompt().

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
config/menu.c