diff options
| author | Peter Maydell | 2020-11-06 16:27:36 +0100 |
|---|---|---|
| committer | Laurent Vivier | 2020-12-18 11:23:29 +0100 |
| commit | 309abce23658c0142430440c7ad1be2a02170ed0 (patch) | |
| tree | d24d64654f60c7683afda9967d0ebc93b85ef944 /scripts/git.orderfile | |
| parent | linux-user/sparc: Correct sparc64_get/set_context() FPU handling (diff) | |
| download | qemu-309abce23658c0142430440c7ad1be2a02170ed0.tar.gz qemu-309abce23658c0142430440c7ad1be2a02170ed0.tar.xz qemu-309abce23658c0142430440c7ad1be2a02170ed0.zip | |
linux-user/sparc: Remove unneeded checks of 'err' from sparc64_get_context()
Unlike the kernel macros, our __get_user() and __put_user() do not
return a failure code. Kernel code typically has a style of
err |= __get_user(...); err |= __get_user(...);
and then checking err at the end. In sparc64_get_context() our
version of the code dropped the accumulating into err but left the
"if (err) goto do_sigsegv" checks, which will never be taken. Delete
unnecessary if()s.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20201106152738.26026-3-peter.maydell@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'scripts/git.orderfile')
0 files changed, 0 insertions, 0 deletions
