mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
bootconfig: remove redundant assignment in xbc_parse_array()
After the loop, node is the last array value that xbc_add_child() added, and xbc_parse_array() sets node->child to 0. xbc_init_node() already set node->child to 0 when the value was added, and node->child is not modified after that, so the assignment is redundant. So remove the assignment. No functional change. Link: https://lore.kernel.org/all/20260910163051.1973775-1-ekffu200098@gmail.com/ Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
This commit is contained in:
parent
2878d76d86
commit
a57b5001e3
|
|
@ -833,7 +833,6 @@ static int __init xbc_parse_array(char **__v)
|
|||
return -ENOMEM;
|
||||
*__v = next;
|
||||
} while (c == ',');
|
||||
node->child = 0;
|
||||
|
||||
return c;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user