diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2024-05-10 13:23:23 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-05-14 17:36:19 +0300 |
commit | 648d82a984ba1c81b6cc2107917806864a9aa549 (patch) | |
tree | 0c4ee2021b31f88b7c85d399d35cbf3550254284 /scripts/kconfig/nconf.c | |
parent | cc3e4e5e38f97da6085659fabbef2d560c05d1c3 (diff) | |
download | linux-648d82a984ba1c81b6cc2107917806864a9aa549.tar.xz |
kconfig: m/nconf: merge two item_add_str() calls
Just trivial cleanups.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/nconf.c')
-rw-r--r-- | scripts/kconfig/nconf.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c index 93047cd28f3f..e1cb09418cbe 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 { |