[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20240507103756.1401996-3-masahiroy@kernel.org>
Date: Tue, 7 May 2024 19:37:56 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: linux-kbuild@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
Masahiro Yamada <masahiroy@...nel.org>
Subject: [PATCH 3/3] kconfig: m/nconf: merge two item_add_str() calls
Just trivial cleanups.
Signed-off-by: Masahiro Yamada <masahiroy@...nel.org>
---
scripts/kconfig/mconf.c | 6 ++----
scripts/kconfig/nconf.c | 7 ++-----
2 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index 64bf373f7921..33929b0b5ca8 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -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 {
diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c
index 715e156fdbb1..a9ef2ced7d7a 100644
--- a/scripts/kconfig/nconf.c
+++ b/scripts/kconfig/nconf.c
@@ -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 {
--
2.40.1
Powered by blists - more mailing lists