summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-04-13 17:33:20 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2020-05-12 06:28:30 +0200
commitcfc6eea9f6af84e838e28be57b03be5502c4a02e (patch)
tree9e2c808c085c6f1c14d2b62080397e7939acced4 /scripts
parentLinux 5.7-rc5 (diff)
downloadlinux-cfc6eea9f6af84e838e28be57b03be5502c4a02e.tar.xz
linux-cfc6eea9f6af84e838e28be57b03be5502c4a02e.zip
kconfig: do not use OR-assignment for zero-cleared structure
The simple assignment is enough because memset() three lines above has zero-cleared the structure. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/symbol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c
index 3dc81397d003..9363e37b8870 100644
--- a/scripts/kconfig/symbol.c
+++ b/scripts/kconfig/symbol.c
@@ -831,7 +831,7 @@ struct symbol *sym_lookup(const char *name, int flags)
memset(symbol, 0, sizeof(*symbol));
symbol->name = new_name;
symbol->type = S_UNKNOWN;
- symbol->flags |= flags;
+ symbol->flags = flags;
symbol->next = symbol_hash[hash];
symbol_hash[hash] = symbol;