diff mbox series

[4/5] queue: remove unneeded entry advancement

Message ID 20240305132807.85724-4-prestwoj@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series [1/5] cert: remove usused elem_data variable | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success

Commit Message

James Prestwood March 5, 2024, 1:28 p.m. UTC
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 mbox series

Patch

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);