aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/confdata.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index a1a9872e4a2d..d01f962e879f 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -798,7 +798,6 @@ int conf_write_autoconf(void)
798 const char *name; 798 const char *name;
799 FILE *out, *tristate, *out_h; 799 FILE *out, *tristate, *out_h;
800 int i; 800 int i;
801 int fct_val;
802 801
803 sym_clear_all_valid(); 802 sym_clear_all_valid();
804 803
@@ -839,7 +838,7 @@ int conf_write_autoconf(void)
839 rootmenu.prompt->text); 838 rootmenu.prompt->text);
840 839
841 for_all_symbols(i, sym) { 840 for_all_symbols(i, sym) {
842 fct_val = 1; 841 int fct_val = 0;
843 sym_calc_value(sym); 842 sym_calc_value(sym);
844 if (!(sym->flags & SYMBOL_WRITE) || !sym->name) 843 if (!(sym->flags & SYMBOL_WRITE) || !sym->name)
845 continue; 844 continue;
@@ -853,7 +852,6 @@ int conf_write_autoconf(void)
853 case S_TRISTATE: 852 case S_TRISTATE:
854 switch (sym_get_tristate_value(sym)) { 853 switch (sym_get_tristate_value(sym)) {
855 case no: 854 case no:
856 fct_val = 0;
857 break; 855 break;
858 case mod: 856 case mod:
859 fprintf(tristate, "%s%s=M\n", 857 fprintf(tristate, "%s%s=M\n",
@@ -868,8 +866,10 @@ int conf_write_autoconf(void)
868 CONFIG_, sym->name); 866 CONFIG_, sym->name);
869 fprintf(out_h, "#define %s%s 1\n", 867 fprintf(out_h, "#define %s%s 1\n",
870 CONFIG_, sym->name); 868 CONFIG_, sym->name);
869 fct_val = 1;
871 break; 870 break;
872 } 871 }
872 conf_write_function_autoconf(out_h, CONFIG_, sym->name, fct_val);
873 break; 873 break;
874 case S_STRING: 874 case S_STRING:
875 conf_write_string(true, sym->name, sym_get_string_value(sym), out_h); 875 conf_write_string(true, sym->name, sym_get_string_value(sym), out_h);
@@ -887,10 +887,8 @@ int conf_write_autoconf(void)
887 CONFIG_, sym->name, str); 887 CONFIG_, sym->name, str);
888 break; 888 break;
889 default: 889 default:
890 fct_val = 0;
891 break; 890 break;
892 } 891 }
893 conf_write_function_autoconf(out_h, CONFIG_, sym->name, fct_val);
894 } 892 }
895 fclose(out); 893 fclose(out);
896 fclose(tristate); 894 fclose(tristate);