Skip to content

Commit cfc6eea

Browse files
committed
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>
1 parent 2ef96a5 commit cfc6eea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/kconfig/symbol.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ struct symbol *sym_lookup(const char *name, int flags)
831831
memset(symbol, 0, sizeof(*symbol));
832832
symbol->name = new_name;
833833
symbol->type = S_UNKNOWN;
834-
symbol->flags |= flags;
834+
symbol->flags = flags;
835835

836836
symbol->next = symbol_hash[hash];
837837
symbol_hash[hash] = symbol;

0 commit comments

Comments
 (0)