Skip to content

Commit 648d82a

Browse files
committed
kconfig: m/nconf: merge two item_add_str() calls
Just trivial cleanups. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent cc3e4e5 commit 648d82a

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

scripts/kconfig/mconf.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -541,10 +541,8 @@ static void build_conf(struct menu *menu)
541541

542542
item_add_str("%*c%s", indent + 1, ' ', menu_get_prompt(menu));
543543
if (val == yes) {
544-
if (def_menu) {
545-
item_add_str(" (%s)", menu_get_prompt(def_menu));
546-
item_add_str(" --->");
547-
}
544+
if (def_menu)
545+
item_add_str(" (%s) --->", menu_get_prompt(def_menu));
548546
return;
549547
}
550548
} else {

scripts/kconfig/nconf.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -845,11 +845,8 @@ static void build_conf(struct menu *menu)
845845
item_add_str("%*c%s", indent + 1,
846846
' ', menu_get_prompt(menu));
847847
if (val == yes) {
848-
if (def_menu) {
849-
item_add_str(" (%s)",
850-
menu_get_prompt(def_menu));
851-
item_add_str(" --->");
852-
}
848+
if (def_menu)
849+
item_add_str(" (%s) --->", menu_get_prompt(def_menu));
853850
return;
854851
}
855852
} else {

0 commit comments

Comments
 (0)