summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2021-11-03 22:04:18 +0100
committerDavid Teigland <teigland@redhat.com>2021-11-03 22:07:20 +0100
commitb87b1883efe385e56384ff48e6f3108a33fde508 (patch)
treeaed5732fadfb198be048a059d1710cadd3615d2e
parentfs: dlm: filter user dlm messages for kernel locks (diff)
downloadlinux-b87b1883efe385e56384ff48e6f3108a33fde508.tar.xz
linux-b87b1883efe385e56384ff48e6f3108a33fde508.zip
fs: dlm: remove double list_first_entry call
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>
-rw-r--r--fs/dlm/lowcomms.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index 3f8b015ba799..2f070514b3ee 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -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);