From 6655557fca28408e0eeac3ba80b9e2bbdeada389 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 14 Aug 2017 17:01:36 -0700 Subject: Fix a few problems found by codacy. One was a real bug. --- src/core/msgqueue.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/core/msgqueue.c') diff --git a/src/core/msgqueue.c b/src/core/msgqueue.c index 8d0c3dbc..6530857e 100644 --- a/src/core/msgqueue.c +++ b/src/core/msgqueue.c @@ -374,7 +374,6 @@ int nni_msgq_tryput(nni_msgq *mq, nni_msg *msg) { nni_aio *raio; - size_t len = nni_msg_len(msg); nni_mtx_lock(&mq->mq_lock); if (mq->mq_closed) { @@ -484,7 +483,6 @@ void nni_msgq_close(nni_msgq *mq) { nni_aio *aio; - nni_aio *naio; nni_mtx_lock(&mq->mq_lock); mq->mq_closed = 1; @@ -500,7 +498,6 @@ nni_msgq_close(nni_msgq *mq) } // Let all pending blockers know we are closing the queue. - naio = nni_list_first(&mq->mq_aio_getq); while (((aio = nni_list_first(&mq->mq_aio_getq)) != NULL) || ((aio = nni_list_first(&mq->mq_aio_putq)) != NULL)) { nni_aio_list_remove(aio); -- cgit v1.2.3-70-g09d2