mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-27 01:11:31 +00:00
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: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
parent
03c4ecaa5c
commit
c2af3d03c5
1 changed files with 2 additions and 3 deletions
|
|
@ -497,9 +497,8 @@ static int conf_choice(struct menu *menu)
|
|||
printf("%*c", indent, '>');
|
||||
} else
|
||||
printf("%*c", indent, ' ');
|
||||
printf(" %d. %s", cnt, menu_get_prompt(child));
|
||||
if (child->sym->name)
|
||||
printf(" (%s)", child->sym->name);
|
||||
printf(" %d. %s (%s)", cnt, menu_get_prompt(child),
|
||||
child->sym->name);
|
||||
if (!sym_has_value(child->sym))
|
||||
printf(" (NEW)");
|
||||
printf("\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue