We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 359b295 commit 6571ddfCopy full SHA for 6571ddf
src/wolfsentry_util.c
@@ -812,10 +812,8 @@ WOLFSENTRY_API wolfsentry_errcode_t wolfsentry_init_thread_context(struct wolfse
812
* the held lock can be safely locked recursively from within the
813
* interrupt context.
814
*/
815
- if (thread_context->id == (wolfsentry_thread_id_t)((uintptr_t)WOLFSENTRY_THREAD_NO_ID - 0xffffff)) {
816
- (void)WOLFSENTRY_ATOMIC_INCREMENT(fallback_thread_id_counter, 0xffffff);
817
- }
818
- (void)fallback_thread_id_counter;
+ if (thread_context->id == (wolfsentry_thread_id_t)((uintptr_t)WOLFSENTRY_THREAD_NO_ID - 0xffffff))
+ WOLFSENTRY_ATOMIC_INCREMENT(fallback_thread_id_counter, 0xffffff);
819
WOLFSENTRY_SUCCESS_RETURN(USED_FALLBACK);
820
} else
821
WOLFSENTRY_RETURN_OK;
0 commit comments