linux-user/mips: Tidy install_sigtramp
The return value is constant 0, and unused as well -- change to void. Drop inline marker. Change tramp type to uint32_t* for clarity. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210929130553.121567-15-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
8004316d81
commit
4f7a0a4c86
@ -87,10 +87,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 ...
|
||||
*
|
||||
@ -100,7 +98,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,
|
||||
|
Loading…
Reference in New Issue
Block a user