arch: riscv: Fix bogus condition

Remove double preprocessor condition.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
This commit is contained in:
Marek Matej 2023-05-26 15:32:55 +02:00 committed by Anas Nashif
parent 5925a4670b
commit 92b7d37397

View file

@ -569,9 +569,7 @@ check_reschedule:
addi sp, sp, -16
sr a1, 0(sp)
mv a0, zero
#ifdef CONFIG_MULTITHREADING
call z_get_next_switch_handle
#endif
lr a1, 0(sp)
addi sp, sp, 16
beqz a0, no_reschedule