kconfig: turn conf_choice() into void function
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 4 May 2024 18:33:31 +0000 (03:33 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 9 May 2024 19:34:53 +0000 (04:34 +0900)
The return value of conf_choice() is not used.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/conf.c

index 0156ca13f949c5c9929eb41e26d517ad0ffaf346..8ad2c52d9b1f9d53dc17a195c16ef8708f76c6f5 100644 (file)
@@ -446,7 +446,7 @@ help:
        }
 }
 
-static int conf_choice(struct menu *menu)
+static void conf_choice(struct menu *menu)
 {
        struct symbol *sym, *def_sym;
        struct menu *child;
@@ -459,19 +459,18 @@ static int conf_choice(struct menu *menu)
                sym_calc_value(sym);
                switch (sym_get_tristate_value(sym)) {
                case no:
-                       return 1;
                case mod:
-                       return 0;
+                       return;
                case yes:
                        break;
                }
        } else {
                switch (sym_get_tristate_value(sym)) {
                case no:
-                       return 1;
+                       return;
                case mod:
                        printf("%*s%s\n", indent - 1, "", menu_get_prompt(menu));
-                       return 0;
+                       return;
                case yes:
                        break;
                }
@@ -551,7 +550,7 @@ static int conf_choice(struct menu *menu)
                        continue;
                }
                sym_set_tristate_value(child->sym, yes);
-               return 1;
+               return;
        }
 }