pkarashchenko commented on code in PR #8951: URL: https://github.com/apache/nuttx/pull/8951#discussion_r1157158812
########## sched/semaphore/sem_holder.c: ########## @@ -103,20 +103,18 @@ nxsem_allocholder(FAR sem_t *sem, FAR struct tcb_s *htcb) { serr("ERROR: Insufficient pre-allocated holders\n"); pholder = NULL; - DEBUGPANIC(); } - if (pholder != NULL) - { - pholder->sem = sem; - pholder->htcb = htcb; - pholder->counts = 0; + DEBUGASSERT(pholder != NULL); Review Comment: I just didn't want to change existing behaviour that use `DEBUGPANIC();` and not `PANIC();`. But I agree that `ASSERT(pholder != NULL);` might be better here. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org