Commit c2af3d03 authored by Masahiro Yamada's avatar Masahiro Yamada

kconfig: remove unneeded if-conditional in conf_choice()

All symbols except choices have a name.

child->sym->name never becomes NULL inside choice blocks.
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 03c4ecaa
...@@ -497,9 +497,8 @@ static int conf_choice(struct menu *menu) ...@@ -497,9 +497,8 @@ static int conf_choice(struct menu *menu)
printf("%*c", indent, '>'); printf("%*c", indent, '>');
} else } else
printf("%*c", indent, ' '); printf("%*c", indent, ' ');
printf(" %d. %s", cnt, menu_get_prompt(child)); printf(" %d. %s (%s)", cnt, menu_get_prompt(child),
if (child->sym->name) child->sym->name);
printf(" (%s)", child->sym->name);
if (!sym_has_value(child->sym)) if (!sym_has_value(child->sym))
printf(" (NEW)"); printf(" (NEW)");
printf("\n"); printf("\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment