The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] liveupdate: Remove redundant INIT_LIST_HEAD in luo_session_alloc
@ 2026-07-14  7:40 Hongfu Li
  2026-07-14  8:58 ` Pratyush Yadav
  0 siblings, 1 reply; 2+ messages in thread
From: Hongfu Li @ 2026-07-14  7:40 UTC (permalink / raw)
  To: pasha.tatashin, rppt, pratyush; +Cc: kexec, linux-kernel, Hongfu Li

From: Hongfu Li <lihongfu@kylinos.cn>

luo_session_alloc() calls INIT_LIST_HEAD(&session->file_set.files_list)
followed immediately by luo_file_set_init(), which also performs
INIT_LIST_HEAD() on the same list head. Remove the duplicate call.

Signed-off-by: Hongfu Li <lihongfu@kylinos.cn>
---
 kernel/liveupdate/luo_session.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/kernel/liveupdate/luo_session.c b/kernel/liveupdate/luo_session.c
index b79b2a488974..90ae3810e6cf 100644
--- a/kernel/liveupdate/luo_session.c
+++ b/kernel/liveupdate/luo_session.c
@@ -154,7 +154,6 @@ static struct luo_session *luo_session_alloc(const char *name)
 		return ERR_PTR(-ENOMEM);
 
 	strscpy(session->name, name, sizeof(session->name));
-	INIT_LIST_HEAD(&session->file_set.files_list);
 	luo_file_set_init(&session->file_set);
 	INIT_LIST_HEAD(&session->list);
 	mutex_init(&session->mutex);
-- 
2.54.0


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

end of thread, other threads:[~2026-07-14  8:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-14  7:40 [PATCH] liveupdate: Remove redundant INIT_LIST_HEAD in luo_session_alloc Hongfu Li
2026-07-14  8:58 ` Pratyush Yadav

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