Commit 92d4fe0a authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

kconfig: remove unused code for S_DEF_AUTO in conf_read_simple()



The 'else' arm here is unreachable in practical use cases.

include/config/auto.conf does not include "# CONFIG_... is not set"
line unless it is manually hacked.

Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 4d137ab0
Loading
Loading
Loading
Loading
+8 −13
Original line number Diff line number Diff line
@@ -436,7 +436,7 @@ int conf_read_simple(const char *name, int def)
			*p++ = 0;
			if (strncmp(p, "is not set", 10))
				continue;
			if (def == S_DEF_USER) {

			sym = sym_find(line + 2 + strlen(CONFIG_));
			if (!sym) {
				if (warn_unknown)
@@ -446,11 +446,6 @@ int conf_read_simple(const char *name, int def)
				conf_set_changed(true);
				continue;
			}
			} else {
				sym = sym_lookup(line + 2 + strlen(CONFIG_), 0);
				if (sym->type == S_UNKNOWN)
					sym->type = S_BOOLEAN;
			}
			if (sym->flags & def_flags) {
				conf_warning("override: reassigning to symbol %s", sym->name);
			}