Commit cca31837 authored by Masahiro Yamada's avatar Masahiro Yamada

kconfig: remove conf_unsaved in conf_read_simple()

This variable is unnecessary. Call conf_set_changed(true) directly.
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent bd0db4b6
...@@ -477,7 +477,6 @@ int conf_read_simple(const char *name, int def) ...@@ -477,7 +477,6 @@ int conf_read_simple(const char *name, int def)
int conf_read(const char *name) int conf_read(const char *name)
{ {
struct symbol *sym; struct symbol *sym;
int conf_unsaved = 0;
conf_set_changed(false); conf_set_changed(false);
...@@ -508,11 +507,11 @@ int conf_read(const char *name) ...@@ -508,11 +507,11 @@ int conf_read(const char *name)
} else if (!sym_has_value(sym) && !(sym->flags & SYMBOL_WRITE)) } else if (!sym_has_value(sym) && !(sym->flags & SYMBOL_WRITE))
/* no previous value and not saved */ /* no previous value and not saved */
continue; continue;
conf_unsaved++; conf_set_changed(true);
/* maybe print value in verbose mode... */ /* maybe print value in verbose mode... */
} }
if (conf_warnings || conf_unsaved) if (conf_warnings)
conf_set_changed(true); conf_set_changed(true);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment