liveupdate: Remove redundant INIT_LIST_HEAD in luo_session_alloc
Subsystems (2)
PATCH 1/1 liveupdate: Remove redundant INIT_LIST_HEAD in luo_session_alloc
From: Hongfu Li <[email protected]>
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.
--- kernel/liveupdate/luo_session.c | 1 - 1 file changed, 1 deletion(-)
kernel/liveupdate/luo_session.c +0 -1
@@ -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);
Signature · 1 line
2.54.0
Quoted 7 lines · Hongfu Li
From: Hongfu Li <[email protected]>
luo_session_alloc()callsINIT_LIST_HEAD(&session->file_set.files_list)followed immediately byluo_file_set_init(), which also performsINIT_LIST_HEAD()on the same list head. Remove the duplicate call.Signed-off-by Hongfu Li <[email protected]>
[...]
Signature · 2 lines
Regards, Pratyush Yadav
Quoted 1 line · Hongfu Li
liveupdate: Remove redundant
INIT_LIST_HEADinluo_session_alloc
Applied to misc branch of liveupdate/linux.git tree, thanks!
[1/1] liveupdate: Remove redundant INIT_LIST_HEAD in luo_session_alloc
commit: 4867ab462d8d69e73c239b9a1a98e42a222f17a2
tree: https://git.kernel.org/pub/scm/linux/kernel/git/liveupdate/linux
branch: misc
--
Sincerely yours,
Mike.