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-Url: https://jxself.org/git/?a=commitdiff_plain;h=3505601dfc2d1a9db9965039744c7c8720cf09f0;p=carl9170fw.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 Signed-off-by: Christian Lamparter --- diff --git a/config/symbol.c b/config/symbol.c index 3dc8139..9363e37 100644 --- a/config/symbol.c +++ b/config/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;