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

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



Just trivial cleanups.

Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent cc3e4e5e
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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 {
+2 −5
Original line number Diff line number Diff line
@@ -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 {