Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kconfig: turn conf_choice() into void function

The return value of conf_choice() is not used.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+5 -6
+5 -6
scripts/kconfig/conf.c
··· 446 446 } 447 447 } 448 448 449 - static int conf_choice(struct menu *menu) 449 + static void conf_choice(struct menu *menu) 450 450 { 451 451 struct symbol *sym, *def_sym; 452 452 struct menu *child; ··· 459 459 sym_calc_value(sym); 460 460 switch (sym_get_tristate_value(sym)) { 461 461 case no: 462 - return 1; 463 462 case mod: 464 - return 0; 463 + return; 465 464 case yes: 466 465 break; 467 466 } 468 467 } else { 469 468 switch (sym_get_tristate_value(sym)) { 470 469 case no: 471 - return 1; 470 + return; 472 471 case mod: 473 472 printf("%*s%s\n", indent - 1, "", menu_get_prompt(menu)); 474 - return 0; 473 + return; 475 474 case yes: 476 475 break; 477 476 } ··· 550 551 continue; 551 552 } 552 553 sym_set_tristate_value(child->sym, yes); 553 - return 1; 554 + return; 554 555 } 555 556 } 556 557