From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Aring Date: Mon, 4 Apr 2022 16:06:35 -0400 Subject: [Cluster-devel] [PATCH RESEND v5.18-rc1 08/19] fs: dlm: remove unnecessary INIT_LIST_HEAD() In-Reply-To: <20220404200646.3170301-1-aahringo@redhat.com> References: <20220404200646.3170301-1-aahringo@redhat.com> Message-ID: <20220404200646.3170301-9-aahringo@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit There is no need to call INIT_LIST_HEAD() when it's set directly afterwards by list_add_tail(). Reported-by: Andreas Gruenbacher Signed-off-by: Alexander Aring --- fs/dlm/plock.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/dlm/plock.c b/fs/dlm/plock.c index ce1af7986e16..ff439d780cb1 100644 --- a/fs/dlm/plock.c +++ b/fs/dlm/plock.c @@ -67,7 +67,6 @@ static void dlm_release_plock_op(struct plock_op *op) static void send_op(struct plock_op *op) { set_version(&op->info); - INIT_LIST_HEAD(&op->list); spin_lock(&ops_lock); list_add_tail(&op->list, &send_list); spin_unlock(&ops_lock); -- 2.31.1