Skip to content

Commit 6571ddf

Browse files
committed
Revert wolfsentry_init_thread_context change.
1 parent 359b295 commit 6571ddf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/wolfsentry_util.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -812,10 +812,8 @@ WOLFSENTRY_API wolfsentry_errcode_t wolfsentry_init_thread_context(struct wolfse
812812
* the held lock can be safely locked recursively from within the
813813
* interrupt context.
814814
*/
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;
815+
if (thread_context->id == (wolfsentry_thread_id_t)((uintptr_t)WOLFSENTRY_THREAD_NO_ID - 0xffffff))
816+
WOLFSENTRY_ATOMIC_INCREMENT(fallback_thread_id_counter, 0xffffff);
819817
WOLFSENTRY_SUCCESS_RETURN(USED_FALLBACK);
820818
} else
821819
WOLFSENTRY_RETURN_OK;

0 commit comments

Comments
 (0)