anchao commented on code in PR #12281:
URL: https://github.com/apache/nuttx/pull/12281#discussion_r1592452245


##########
sched/irq/irq_csection.c:
##########
@@ -192,208 +192,207 @@ irqstate_t enter_critical_section(void)
    * lists are valid.
    */
 
-  if (nxsched_get_initstate() >= OSINIT_TASKLISTS)
+  DEBUGASSERT(g_nx_initstate >= OSINIT_TASKLISTS);

Review Comment:
   ```suggestion
   
   ```
   
   I think we can remove this assertion as it will be caught at line 332:
   
   ```
         cpu  = this_cpu();
         rtcb = current_task(cpu);
         DEBUGASSERT(rtcb != NULL);
   ```



-- 
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