From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Aring Date: Thu, 17 Feb 2022 14:39:16 -0500 Subject: [Cluster-devel] [PATCHv2 dlm/next 5/6] fs: dlm: remove unnecessary INIT_LIST_HEAD() In-Reply-To: <20220217193917.3292717-1-aahringo@redhat.com> References: <20220217193917.3292717-1-aahringo@redhat.com> Message-ID: <20220217193917.3292717-6-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