mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
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>
This commit is contained in:
parent
6c2e3bf68f
commit
b87b1883ef
@ -1405,7 +1405,6 @@ static void send_to_sock(struct connection *con)
|
|||||||
if (!e)
|
if (!e)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
e = list_first_entry(&con->writequeue, struct writequeue_entry, list);
|
|
||||||
len = e->len;
|
len = e->len;
|
||||||
offset = e->offset;
|
offset = e->offset;
|
||||||
BUG_ON(len == 0 && e->users == 0);
|
BUG_ON(len == 0 && e->users == 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user