summaryrefslogtreecommitdiff
path: root/deps/openssl/openssl/crypto/pqueue/pqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/openssl/openssl/crypto/pqueue/pqueue.c')
-rw-r--r--deps/openssl/openssl/crypto/pqueue/pqueue.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/deps/openssl/openssl/crypto/pqueue/pqueue.c b/deps/openssl/openssl/crypto/pqueue/pqueue.c
index 6c89f06fb1..8ebba8a856 100644
--- a/deps/openssl/openssl/crypto/pqueue/pqueue.c
+++ b/deps/openssl/openssl/crypto/pqueue/pqueue.c
@@ -166,14 +166,13 @@ pqueue_pop(pqueue_s *pq)
pitem *
pqueue_find(pqueue_s *pq, PQ_64BIT priority)
{
- pitem *next, *prev = NULL;
+ pitem *next;
pitem *found = NULL;
if ( pq->items == NULL)
return NULL;
- for ( next = pq->items; next->next != NULL;
- prev = next, next = next->next)
+ for ( next = pq->items; next->next != NULL; next = next->next)
{
if ( pq_64bit_eq(&(next->priority), &priority))
{
@@ -189,13 +188,6 @@ pqueue_find(pqueue_s *pq, PQ_64BIT priority)
if ( ! found)
return NULL;
-#if 0 /* find works in peek mode */
- if ( prev == NULL)
- pq->items = next->next;
- else
- prev->next = next->next;
-#endif
-
return found;
}