summaryrefslogtreecommitdiff
path: root/src/core/msgqueue.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-08-14 17:01:36 -0700
committerGarrett D'Amore <garrett@damore.org>2017-08-14 17:01:36 -0700
commit6655557fca28408e0eeac3ba80b9e2bbdeada389 (patch)
treed7892ee947baf32426d42913be711c8506b7b7a7 /src/core/msgqueue.c
parent97cb71c2f3e2a8ca041a24493761a7db98371710 (diff)
downloadnng-6655557fca28408e0eeac3ba80b9e2bbdeada389.tar.gz
nng-6655557fca28408e0eeac3ba80b9e2bbdeada389.tar.bz2
nng-6655557fca28408e0eeac3ba80b9e2bbdeada389.zip
Fix a few problems found by codacy. One was a real bug.
Diffstat (limited to 'src/core/msgqueue.c')
-rw-r--r--src/core/msgqueue.c3
1 files changed, 0 insertions, 3 deletions
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);