sched/sched: next pointer value is definitely not null
Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
parent
508c5889d7
commit
f791311138
@ -112,10 +112,11 @@ void nxsched_process_delivered(int cpu)
|
|||||||
|
|
||||||
btcb = g_delivertasks[cpu];
|
btcb = g_delivertasks[cpu];
|
||||||
|
|
||||||
for (next = tcb;
|
for (next = tcb; btcb->sched_priority <= next->sched_priority;
|
||||||
(next && btcb->sched_priority <= next->sched_priority);
|
|
||||||
next = next->flink);
|
next = next->flink);
|
||||||
|
|
||||||
|
DEBUGASSERT(next);
|
||||||
|
|
||||||
prev = next->blink;
|
prev = next->blink;
|
||||||
if (prev == NULL)
|
if (prev == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user