From 18beaaa480c35156c8d15f77c5675b3b6f9bcb41 Mon Sep 17 00:00:00 2001 From: ligd Date: Wed, 21 Dec 2022 16:03:22 +0800 Subject: [PATCH] sim: remove unused variable in sim_saveusercontext() Signed-off-by: ligd --- arch/sim/src/sim/sim_internal.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/sim/src/sim/sim_internal.h b/arch/sim/src/sim/sim_internal.h index 3805b5770c..db38387173 100644 --- a/arch/sim/src/sim/sim_internal.h +++ b/arch/sim/src/sim/sim_internal.h @@ -89,13 +89,11 @@ ({ \ irqstate_t flags = up_irq_flags(); \ uint32_t *env = (uint32_t *)saveregs + JB_FLAG; \ - int ret; \ \ env[0] = flags & UINT32_MAX; \ env[1] = (flags >> 32) & UINT32_MAX; \ \ - ret = setjmp(saveregs); \ - ret; \ + setjmp(saveregs); \ }) #define sim_fullcontextrestore(restoreregs) \ do \