Message ID | 20210618192951.125651-14-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show |
Series | linux-user: Move signal trampolines to new page | expand |
On 6/18/21 9:29 PM, Richard Henderson wrote: > The return value is constant 0, and unused as well -- change to void. > Drop inline marker. Change tramp type to uint32_t* for clarity. > > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > linux-user/mips/signal.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) Thanks :) Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
diff --git a/linux-user/mips/signal.c b/linux-user/mips/signal.c index e6be807a81..7cad7526ea 100644 --- a/linux-user/mips/signal.c +++ b/linux-user/mips/signal.c @@ -86,10 +86,8 @@ struct target_rt_sigframe { }; /* Install trampoline to jump back from signal handler */ -static inline int install_sigtramp(unsigned int *tramp, unsigned int syscall) +static void install_sigtramp(uint32_t *tramp, unsigned int syscall) { - int err = 0; - /* * Set up the return code ... * @@ -99,7 +97,6 @@ static inline int install_sigtramp(unsigned int *tramp, unsigned int syscall) __put_user(0x24020000 + syscall, tramp + 0); __put_user(0x0000000c , tramp + 1); - return err; } static inline void setup_sigcontext(CPUMIPSState *regs,
The return value is constant 0, and unused as well -- change to void. Drop inline marker. Change tramp type to uint32_t* for clarity. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- linux-user/mips/signal.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.25.1