mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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:
parent
cc3e4e5e38
commit
648d82a984
2 changed files with 4 additions and 9 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue