riscv/riscv_schedulesigaction.c: Remove the duplicate state saving.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
Abdelatif Guettouche 2022-04-12 14:28:06 +02:00 committed by Petro Karashchenko
parent 2094f4f0dc
commit 7660b3b1c4

View File

@ -126,8 +126,6 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
* been delivered.
*/
tcb->xcp.saved_regs = (uintptr_t *)CURRENT_REGS;
riscv_savestate(tcb->xcp.saved_regs);
/* Duplicate the register context. These will be