Commit 8c00e580 authored by Masahiro Yamada's avatar Masahiro Yamada

kconfig: turn conf_choice() into void function

The return value of conf_choice() is not used.
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 7d280674
...@@ -446,7 +446,7 @@ static int conf_sym(struct menu *menu) ...@@ -446,7 +446,7 @@ static int conf_sym(struct menu *menu)
} }
} }
static int conf_choice(struct menu *menu) static void conf_choice(struct menu *menu)
{ {
struct symbol *sym, *def_sym; struct symbol *sym, *def_sym;
struct menu *child; struct menu *child;
...@@ -459,19 +459,18 @@ static int conf_choice(struct menu *menu) ...@@ -459,19 +459,18 @@ static int conf_choice(struct menu *menu)
sym_calc_value(sym); sym_calc_value(sym);
switch (sym_get_tristate_value(sym)) { switch (sym_get_tristate_value(sym)) {
case no: case no:
return 1;
case mod: case mod:
return 0; return;
case yes: case yes:
break; break;
} }
} else { } else {
switch (sym_get_tristate_value(sym)) { switch (sym_get_tristate_value(sym)) {
case no: case no:
return 1; return;
case mod: case mod:
printf("%*s%s\n", indent - 1, "", menu_get_prompt(menu)); printf("%*s%s\n", indent - 1, "", menu_get_prompt(menu));
return 0; return;
case yes: case yes:
break; break;
} }
...@@ -551,7 +550,7 @@ static int conf_choice(struct menu *menu) ...@@ -551,7 +550,7 @@ static int conf_choice(struct menu *menu)
continue; continue;
} }
sym_set_tristate_value(child->sym, yes); sym_set_tristate_value(child->sym, yes);
return 1; return;
} }
} }
......
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