mirror of
https://github.com/apache/nuttx.git
synced 2026-08-05 06:10:27 +00:00
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
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue