kconfig: fix return code for invalid boolean symbol in conf_set_sym_val()
authorArnaud Lacombe <lacombar@gmail.com>
Tue, 31 May 2011 16:31:57 +0000 (12:31 -0400)
committerArnaud Lacombe <lacombar@gmail.com>
Mon, 6 Jun 2011 19:32:11 +0000 (15:32 -0400)
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
scripts/kconfig/confdata.c

index 0a1ccc397b860411a8c9b36c473da8783d07b7d2..4e878dda1add03cf9c700852a5249b50e7e69817 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++)