xiaoxiang781216 commented on code in PR #18288:
URL: https://github.com/apache/nuttx/pull/18288#discussion_r2747571073


##########
libs/libc/semaphore/sem_wait.c:
##########
@@ -140,13 +140,6 @@ int nxsem_wait(FAR sem_t *sem)
 
   DEBUGASSERT(sem != NULL);
 
-  /* This API should not be called from the idleloop or interrupt */
-
-#if defined(CONFIG_BUILD_FLAT) || defined(__KERNEL__)
-  DEBUGASSERT(!OSINIT_IDLELOOP() || !sched_idletask() ||

Review Comment:
   why move assert to the end



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to