Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Just trivial cleanups.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+4 -9
+2 -4
scripts/kconfig/mconf.c
··· 541 541 542 542 item_add_str("%*c%s", indent + 1, ' ', menu_get_prompt(menu)); 543 543 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)); 548 546 return; 549 547 } 550 548 } else {
+2 -5
scripts/kconfig/nconf.c
··· 845 845 item_add_str("%*c%s", indent + 1, 846 846 ' ', menu_get_prompt(menu)); 847 847 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)); 853 850 return; 854 851 } 855 852 } else {