From: Masahiro Yamada Date: Mon, 13 Apr 2020 15:33:20 +0000 (+0900) Subject: kconfig: do not use OR-assignment for zero-cleared structure X-Git-Tag: v5.8-rc1~110^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cfc6eea9f6af84e838e28be57b03be5502c4a02e;p=thirdparty%2Fkernel%2Flinux.git 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 --- diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c index 3dc81397d0038..9363e37b88709 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;