sched: fix nxsched_suspend_scheduler regression

This commit fixes the regression from https://github.com/apache/nuttx/pull/13877

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5 2024-10-11 14:21:02 +08:00 committed by archer
parent f8f6bfff29
commit fa8ccc0e85

View file

@ -63,7 +63,7 @@ void nxsched_suspend_scheduler(FAR struct tcb_s *tcb)
{
/* Handle the task exiting case */
if (tcb != NULL)
if (tcb == NULL)
{
return;
}