summaryrefslogtreecommitdiff
path: root/nuttx/sched/sem_wait.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/sem_wait.c')
-rw-r--r--nuttx/sched/sem_wait.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/nuttx/sched/sem_wait.c b/nuttx/sched/sem_wait.c
index 06884e595..b7d16434c 100644
--- a/nuttx/sched/sem_wait.c
+++ b/nuttx/sched/sem_wait.c
@@ -139,10 +139,7 @@ int sem_wait(FAR sem_t *sem)
* semaphore
*/
- if (rtcb->waitsem != NULL)
- {
- PANIC(OSERR_BADWAITSEM);
- }
+ ASSERT(rtcb->waitsem == NULL);
/* Handle the POSIX semaphore (but don't set the owner yet) */