Skip to content

Commit 8c00e58

Browse files
committed
kconfig: turn conf_choice() into void function
The return value of conf_choice() is not used. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 7d28067 commit 8c00e58

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

scripts/kconfig/conf.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ static int conf_sym(struct menu *menu)
446446
}
447447
}
448448

449-
static int conf_choice(struct menu *menu)
449+
static void conf_choice(struct menu *menu)
450450
{
451451
struct symbol *sym, *def_sym;
452452
struct menu *child;
@@ -459,19 +459,18 @@ static int conf_choice(struct menu *menu)
459459
sym_calc_value(sym);
460460
switch (sym_get_tristate_value(sym)) {
461461
case no:
462-
return 1;
463462
case mod:
464-
return 0;
463+
return;
465464
case yes:
466465
break;
467466
}
468467
} else {
469468
switch (sym_get_tristate_value(sym)) {
470469
case no:
471-
return 1;
470+
return;
472471
case mod:
473472
printf("%*s%s\n", indent - 1, "", menu_get_prompt(menu));
474-
return 0;
473+
return;
475474
case yes:
476475
break;
477476
}
@@ -551,7 +550,7 @@ static int conf_choice(struct menu *menu)
551550
continue;
552551
}
553552
sym_set_tristate_value(child->sym, yes);
554-
return 1;
553+
return;
555554
}
556555
}
557556

0 commit comments

Comments
 (0)