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:
parent
f8f6bfff29
commit
fa8ccc0e85
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue