mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
kconfig: remove conf_unsaved in conf_read_simple()
This variable is unnecessary. Call conf_set_changed(true) directly. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
parent
bd0db4b6ad
commit
cca318378d
1 changed files with 2 additions and 3 deletions
|
@ -477,7 +477,6 @@ int conf_read_simple(const char *name, int def)
|
|||
int conf_read(const char *name)
|
||||
{
|
||||
struct symbol *sym;
|
||||
int conf_unsaved = 0;
|
||||
|
||||
conf_set_changed(false);
|
||||
|
||||
|
@ -508,11 +507,11 @@ int conf_read(const char *name)
|
|||
} else if (!sym_has_value(sym) && !(sym->flags & SYMBOL_WRITE))
|
||||
/* no previous value and not saved */
|
||||
continue;
|
||||
conf_unsaved++;
|
||||
conf_set_changed(true);
|
||||
/* maybe print value in verbose mode... */
|
||||
}
|
||||
|
||||
if (conf_warnings || conf_unsaved)
|
||||
if (conf_warnings)
|
||||
conf_set_changed(true);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue