aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2022-04-04 16:06:35 -0400
committerDavid Teigland <teigland@redhat.com>2022-04-06 14:02:13 -0500
commit16d58904dfeb13cc9758194df99cb1a756f11fbc (patch)
treef5d6d27dc777a8ec6e48e0018ca2191126a29639 /fs/dlm
parentbcfad4265cedf3adcac355e994ef9771b78407bd (diff)
downloadlinux-16d58904dfeb13cc9758194df99cb1a756f11fbc.tar.gz
dlm: remove unnecessary INIT_LIST_HEAD()
There is no need to call INIT_LIST_HEAD() when it's set directly afterwards by list_add_tail(). Reported-by: Andreas Gruenbacher <agruenba@redhat.com> Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm')
-rw-r--r--fs/dlm/plock.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/dlm/plock.c b/fs/dlm/plock.c
index ce1af7986e16e..ff439d780cb1d 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);