anchao commented on code in PR #14083: URL: https://github.com/apache/nuttx/pull/14083#discussion_r1797657074
########## sched/sched/sched_suspendscheduler.c: ########## @@ -63,7 +63,7 @@ void nxsched_suspend_scheduler(FAR struct tcb_s *tcb) { /* Handle the task exiting case */ - if (tcb != NULL) + if (tcb == NULL) Review Comment: I prefer to remove the check hereļ¼and move the relative logic into arch exit, which hard to implement? -- 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