Thread (2 messages) flat view 2 messages, 2 authors, 4d ago
COOLING4d IN LINUX-NEXT

Queued in linux-next as a4db38130377 on 2026-09-14.

[PATCH] bootconfig: remove redundant assignment in xbc_parse_array()

From: Sang-Heon Jeon <hidden>
Date: 2026-09-10 16:30:58
Subsystem: extra boot config, library code, the rest · Maintainers: Masami Hiramatsu, Andrew Morton, Linus Torvalds

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.

Signed-off-by: Sang-Heon Jeon <redacted>
---
 lib/bootconfig.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/lib/bootconfig.c b/lib/bootconfig.c
index aba11caf6903..12dd259d490e 100644
--- a/lib/bootconfig.c
+++ b/lib/bootconfig.c
@@ -833,7 +833,6 @@ static int __init xbc_parse_array(char **__v)
 			return -ENOMEM;
 		*__v = next;
 	} while (c == ',');
-	node->child = 0;
 
 	return c;
 }
base-commit: 13e8b7707efcea3a401d242958ba0a392f227847
-- 
2.43.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help