diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2021-04-10 08:57:22 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2021-04-14 08:22:49 +0200 |
commit | 5ee546594025fc9337e4cc8b79db89f1258cf480 (patch) | |
tree | c98b49c0732458eaea9bc63fae96868a649fc794 /scripts/kconfig/parser.y | |
parent | kconfig: nconf: fix core dump when searching in empty menu (diff) | |
download | linux-5ee546594025fc9337e4cc8b79db89f1258cf480.tar.xz linux-5ee546594025fc9337e4cc8b79db89f1258cf480.zip |
kconfig: change sym_change_count to a boolean flag
sym_change_count has no good reason to be 'int' type.
sym_set_change_count() compares the old and new values after casting
both of them to (bool). I do not see any practical diffrence between
sym_set_change_count(1) and sym_add_change_count(1).
Use the boolean flag, conf_changed.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/parser.y')
-rw-r--r-- | scripts/kconfig/parser.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/parser.y b/scripts/kconfig/parser.y index e46ce21a2fc4..e90889edf5b3 100644 --- a/scripts/kconfig/parser.y +++ b/scripts/kconfig/parser.y @@ -507,7 +507,7 @@ void conf_parse(const char *name) } if (yynerrs) exit(1); - sym_set_change_count(1); + conf_set_changed(true); } static bool zconf_endtoken(const char *tokenname, |