mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
kconfig: remove unused code for S_DEF_AUTO in conf_read_simple()
[ Upstream commit 92d4fe0a48f1ab6cf20143dd0b376f4fe842854b ] 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: Masahiro Yamada <masahiroy@kernel.org> Stable-dep-of: a409fc1463d6 ("kconfig: fix memory leak in sym_warn_unmet_dep()") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
fc4f353d8f
commit
d2a7e49ae2
@@ -442,20 +442,15 @@ load:
|
|||||||
*p++ = 0;
|
*p++ = 0;
|
||||||
if (strncmp(p, "is not set", 10))
|
if (strncmp(p, "is not set", 10))
|
||||||
continue;
|
continue;
|
||||||
if (def == S_DEF_USER) {
|
|
||||||
sym = sym_find(line + 2 + strlen(CONFIG_));
|
|
||||||
if (!sym) {
|
|
||||||
if (warn_unknown)
|
|
||||||
conf_warning("unknown symbol: %s",
|
|
||||||
line + 2 + strlen(CONFIG_));
|
|
||||||
|
|
||||||
conf_set_changed(true);
|
sym = sym_find(line + 2 + strlen(CONFIG_));
|
||||||
continue;
|
if (!sym) {
|
||||||
}
|
if (warn_unknown)
|
||||||
} else {
|
conf_warning("unknown symbol: %s",
|
||||||
sym = sym_lookup(line + 2 + strlen(CONFIG_), 0);
|
line + 2 + strlen(CONFIG_));
|
||||||
if (sym->type == S_UNKNOWN)
|
|
||||||
sym->type = S_BOOLEAN;
|
conf_set_changed(true);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
if (sym->flags & def_flags) {
|
if (sym->flags & def_flags) {
|
||||||
conf_warning("override: reassigning to symbol %s", sym->name);
|
conf_warning("override: reassigning to symbol %s", sym->name);
|
||||||
|
|||||||
Reference in New Issue
Block a user