Skip to content

Commit 3336884

Browse files
authored
Merge pull request #40 from douzzer/20220125-cppcheck-clang-tidy-fixes
20220125 fixes from static analysis
2 parents ca8aed4 + c285123 commit 3336884

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

wolfcrypt/src/async.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ static int wolfAsync_NitroxCheckReq(WC_ASYNC_DEV* asyncDev, WOLF_EVENT* event)
486486
if (event->ret == WC_PENDING_E)
487487
event->pendCount++;
488488
else
489-
printf("NitroxCheckRequest: ret %x, req %lx, count %d\n",
489+
printf("NitroxCheckRequest: ret %x, req %lx, count %u\n",
490490
ret,
491491
event->reqId,
492492
event->pendCount);
@@ -574,7 +574,7 @@ static int wolfAsync_NitroxCheckMultiReqBuf(WC_ASYNC_DEV* asyncDev,
574574
if (event->ret == WC_PENDING_E)
575575
event->pendCount++;
576576
else
577-
printf("NitroxCheckRequests: ret %x, req %lx, count %d\n",
577+
printf("NitroxCheckRequests: ret %x, req %lx, count %u\n",
578578
multi_req->req[i].status,
579579
multi_req->req[i].request_id,
580580
event->pendCount);
@@ -686,9 +686,6 @@ int wolfAsync_EventQueuePoll(WOLF_EVENT_QUEUE* queue, void* context_filter,
686686
/* If not pending then mark as done */
687687
if (event->ret != WC_PENDING_E) {
688688
event->state = WOLF_EVENT_STATE_DONE;
689-
#if defined(HAVE_CAVIUM)
690-
event->reqId = 0;
691-
#endif
692689
}
693690
#endif
694691
}

0 commit comments

Comments
 (0)