[PATCH 4/5] queue: remove unneeded entry advancement

James Prestwood <[email protected]> Tue, 5 Mar 2024 05:28:06 -0800
Newsgroups dev.linux.lists.ell
Message-ID <[email protected]>
At this point the loop is over and there is no point advancing
the entry pointer.
---
 ell/queue.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/ell/queue.c b/ell/queue.c
index 487a949..9018402 100644
--- a/ell/queue.c
+++ b/ell/queue.c
@@ -511,8 +511,6 @@ LIB_EXPORT void *l_queue_remove_if(struct l_queue *queue,
 			if (!entry->next)
 				queue->tail = prev;
 
-			entry = entry->next;
-
 			data = tmp->data;
 
 			l_free(tmp);
-- 
2.34.1