Skip to contentSkip to conversation

fs: dlm: remove double list_first_entry call

PATCH New Alexander Aring 1 participant 1 message Nov 3, 2021 Distributed lock manager (DLM)

lore
Share & tools
lore

Alexander Aring

author maintainer
#0 lore raw

PATCH 1/1 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.

---
 fs/dlm/lowcomms.c | 1 -
 1 file changed, 1 deletion(-)
fs/dlm/lowcomms.c +0 -1
index 3f8b015ba799..2f070514b3ee 100644
@@ -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);
Signature · 1 line
2.27.0