kconfig: fix return code for invalid boolean symbol in conf_set_sym_val()
Arnaud Lacombe [Tue, 31 May 2011 16:31:57 +0000 (12:31 -0400)]
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>

scripts/kconfig/confdata.c

index 0a1ccc3..4e878dd 100644 (file)
@@ -141,7 +141,7 @@ static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p)
                        break;
                }
                conf_warning("symbol value '%s' invalid for %s", p, sym->name);
-               break;
+               return 1;
        case S_OTHER:
                if (*p != '"') {
                        for (p2 = p; *p2 && !isspace(*p2); p2++)