Skip to content

Commit

Permalink
sched: fix nxsched_suspend_scheduler regression
Browse files Browse the repository at this point in the history
This commit fixes the regression from apache#13877

Signed-off-by: hujun5 <[email protected]>
  • Loading branch information
hujun260 committed Oct 11, 2024
1 parent 5e96e72 commit 22b8425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sched/sched/sched_suspendscheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 22b8425

Please sign in to comment.