sched/sched: next pointer value is definitely not null

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5 2024-07-19 16:39:17 +08:00 committed by Xiang Xiao
parent 508c5889d7
commit f791311138

View File

@ -112,10 +112,11 @@ void nxsched_process_delivered(int cpu)
btcb = g_delivertasks[cpu];
for (next = tcb;
(next && btcb->sched_priority <= next->sched_priority);
for (next = tcb; btcb->sched_priority <= next->sched_priority;
next = next->flink);
DEBUGASSERT(next);
prev = next->blink;
if (prev == NULL)
{