diff --git a/sched/semaphore/sem_post.c b/sched/semaphore/sem_post.c index 875dfa8f8f..ae04819492 100644 --- a/sched/semaphore/sem_post.c +++ b/sched/semaphore/sem_post.c @@ -198,7 +198,7 @@ int nxsem_post_slow(FAR sem_t *sem) if (mutex) { uint32_t blocking_bit = dq_empty(SEM_WAITLIST(sem)) ? - NXSEM_MBLOCKING_BIT : 0; + 0 : NXSEM_MBLOCKING_BIT; atomic_set(NXSEM_MHOLDER(sem), ((uint32_t)stcb->pid) | blocking_bit); }