summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSang-Heon Jeon <ekffu200098@gmail.com>2026-09-11 01:30:48 +0900
committerAndrew Morton <akpm@linux-foundation.org>2026-10-10 18:56:46 -0700
commit17f035e4f11e7decf57ee9cf94ed44dc0918bbfe (patch)
treeb6dafa715b64ba788948d75e4287a2ce15fa1bf3
parent8fcc6355feed4a9175da1300da73cce47527e42a (diff)
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/20260910163051.1973775-1-ekffu200098@gmail.com Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
-rw-r--r--lib/bootconfig.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/bootconfig.c b/lib/bootconfig.c
index 89c88e359179..f248b5770291 100644
--- a/lib/bootconfig.c
+++ b/lib/bootconfig.c
@@ -836,7 +836,6 @@ static int __init xbc_parse_array(char **__v)
return -ENOMEM;
*__v = next;
} while (c == ',');
- node->child = 0;
return c;
}