OSDN Git Service

linux-user/signal.c: Remove unnecessary wrapper copy_siginfo_to_user
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 8 Jan 2015 12:19:48 +0000 (12:19 +0000)
committerRiku Voipio <riku.voipio@linaro.org>
Tue, 27 Jan 2015 20:33:57 +0000 (22:33 +0200)
commitf6c7a05b8985df7eaf9942ca78e19890204eee4a
tree3c61d237ec0e21dafff413dc6dbc95a9fcf955ff
parentf7e61b222b2796ee43c976ec44c61a15d55ff662
linux-user/signal.c: Remove unnecessary wrapper copy_siginfo_to_user

The function copy_siginfo_to_user() just calls tswap_siginfo(), so
call the latter function directly and delete the wrapper function.
The wrapper is actually misleading since it implies that the
semantics are like the kernel function with the same name which
copies the data to a guest user-space address. In fact tswap_siginfo()
just does data-structure conversion between two structures whose
addresses are host addresses (the copy to userspace is handled
in QEMU by the lock_user/unlock_user calls).

This also fixes clang complaints about the wrapper being unused
in some configs.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/signal.c