mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 06:08:22 +00:00
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>
This commit is contained in:
parent
2ef96a5bb1
commit
cfc6eea9f6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue