kconfig: m/nconf: merge two item_add_str() calls

Just trivial cleanups.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
Masahiro Yamada 2024-05-10 19:23:23 +09:00
parent cc3e4e5e38
commit 648d82a984
2 changed files with 4 additions and 9 deletions

View File

@ -541,10 +541,8 @@ static void build_conf(struct menu *menu)
item_add_str("%*c%s", indent + 1, ' ', menu_get_prompt(menu));
if (val == yes) {
if (def_menu) {
item_add_str(" (%s)", menu_get_prompt(def_menu));
item_add_str(" --->");
}
if (def_menu)
item_add_str(" (%s) --->", menu_get_prompt(def_menu));
return;
}
} else {

View File

@ -845,11 +845,8 @@ static void build_conf(struct menu *menu)
item_add_str("%*c%s", indent + 1,
' ', menu_get_prompt(menu));
if (val == yes) {
if (def_menu) {
item_add_str(" (%s)",
menu_get_prompt(def_menu));
item_add_str(" --->");
}
if (def_menu)
item_add_str(" (%s) --->", menu_get_prompt(def_menu));
return;
}
} else {