mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 05:04:02 +02:00
liveupdate: Remove redundant INIT_LIST_HEAD in luo_session_alloc
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> Reviewed-by: Pratyush Yadav <pratyush@kernel.org> Link: https://patch.msgid.link/20260714074056.95335-1-hongfu.li@linux.dev Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
This commit is contained in:
parent
89dd1421c5
commit
4867ab462d
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user