Skip to content

Commit 16d5890

Browse files
Alexander Aringteigland
authored andcommitted
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>
1 parent bcfad42 commit 16d5890

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/dlm/plock.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ static void dlm_release_plock_op(struct plock_op *op)
6767
static void send_op(struct plock_op *op)
6868
{
6969
set_version(&op->info);
70-
INIT_LIST_HEAD(&op->list);
7170
spin_lock(&ops_lock);
7271
list_add_tail(&op->list, &send_list);
7372
spin_unlock(&ops_lock);

0 commit comments

Comments
 (0)