The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 1/3] init: Drop redundant initialization in xbc_make_cmdline()
@ 2026-12-04 22:15 Thorsten Blum
  2026-12-04 22:15 ` [PATCH 2/3] init: Use bool for done flag in parse_early_param() Thorsten Blum
  2026-12-04 22:15 ` [PATCH 3/3] init: Mark initcall_level_names as __initconst Thorsten Blum
  0 siblings, 2 replies; 3+ messages in thread
From: Thorsten Blum @ 2026-12-04 22:15 UTC (permalink / raw)
  To: Andrew Morton, Masami Hiramatsu (Google), Thorsten Blum,
	Breno Leitao, Sang-Heon Jeon, Mike Rapoport (Microsoft),
	Wilson Felipe Pereira
  Cc: Christian Brauner, Ryan Roberts, linux-kernel

The local variable len is reassigned before its initial value is read.

Signed-off-by: Thorsten Blum <blum@kernel.org>
---
 init/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init/main.c b/init/main.c
index f14780345051..c1e5daa8b52e 100644
--- a/init/main.c
+++ b/init/main.c
@@ -405,7 +405,7 @@ static char * __init xbc_make_cmdline(const char *key, bool is_kernel)
 	xbc_cmdline_filter_fn filter = is_kernel ? xbc_kernel_param_filter : NULL;
 	struct xbc_node *root;
 	char *new_cmdline;
-	int ret, len = 0;
+	int ret, len;
 
 	root = xbc_find_node(key);
 	if (!root)

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-04 22:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 22:15 [PATCH 1/3] init: Drop redundant initialization in xbc_make_cmdline() Thorsten Blum
2026-12-04 22:15 ` [PATCH 2/3] init: Use bool for done flag in parse_early_param() Thorsten Blum
2026-12-04 22:15 ` [PATCH 3/3] init: Mark initcall_level_names as __initconst Thorsten Blum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox