aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Prestwood <prestwoj@gmail.com>2024-03-05 05:28:06 -0800
committerDenis Kenzior <denkenz@gmail.com>2024-03-11 22:12:07 -0500
commitfb9139b5bdc1550d15ad31c90e68fdea334fbb59 (patch)
treea702fb5e8281d1c516efaea7b6a05e63e81bb560
parente0da55061968efa2492fe0678e7a96f723ae199e (diff)
queue: remove unneeded entry advancement
At this point the loop is over and there is no point advancing the entry pointer.
-rw-r--r--ell/queue.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ell/queue.c b/ell/queue.c
index 487a9496..90184022 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);