note: fix sched_note_suspend logic error

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai 2023-03-15 11:31:59 +08:00 committed by Alan Carvalho de Assis
parent cb06ad5ec4
commit d73fb5ca21

View File

@ -736,7 +736,7 @@ void sched_note_suspend(FAR struct tcb_s *tcb)
for (driver = g_note_drivers; *driver; driver++)
{
if (!note_suspend(*driver, tcb))
if (note_suspend(*driver, tcb))
{
continue;
}