sched: fix accidental double ptr bug

This commit is contained in:
anna 2021-02-17 14:08:43 +01:00
parent e79f9d5165
commit 9b1eef8a64
Signed by: fef
GPG key ID: EC22E476DC2D3D84

View file

@ -72,7 +72,7 @@ void *sched_process_switch(void *curr_sp)
while (1) {
nextpid++;
nextpid %= CONFIG_SCHED_MAXTASK;
tmp = &_sched_tasktab[nextpid];
tmp = _sched_tasktab[nextpid];
if (tmp != NULL && sched_task_should_run(_sched_current_task)) {
_sched_current_task = tmp;
break;