Commit 648d82a9 authored by Masahiro Yamada's avatar Masahiro Yamada

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

Just trivial cleanups.
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent cc3e4e5e
......@@ -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 {
......
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment