Skip to content

Commit

Permalink
fs: dlm: remove double list_first_entry call
Browse files Browse the repository at this point in the history
This patch removes a list_first_entry() call which is already done by
the previous con_next_wq() call.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
  • Loading branch information
Alexander Aring authored and David Teigland committed Nov 3, 2021
1 parent 6c2e3bf commit b87b188
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/dlm/lowcomms.c
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,6 @@ static void send_to_sock(struct connection *con)
if (!e)
break;

e = list_first_entry(&con->writequeue, struct writequeue_entry, list);
len = e->len;
offset = e->offset;
BUG_ON(len == 0 && e->users == 0);
Expand Down

0 comments on commit b87b188

Please sign in to comment.