Skip to content

Commit

Permalink
sched/sched: next pointer value is definitely not null
Browse files Browse the repository at this point in the history
Signed-off-by: hujun5 <hujun5@xiaomi.com>
  • Loading branch information
hujun260 committed Sep 29, 2024
1 parent 13ff01f commit 96d0aae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sched/sched/sched_process_delivered.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 96d0aae

Please sign in to comment.