aboutsummaryrefslogtreecommitdiff
path: root/linux-user/m68k/signal.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2018-10-19 17:17:15 +0100
committerLaurent Vivier <laurent@vivier.eu>2018-11-12 15:43:07 +0100
commite285977e77e534f128413b86cabab68bbffcbe4c (patch)
tree862cacd86f1987052f14e2ebfc65531e9eaf13ac /linux-user/m68k/signal.c
parentb4c0595446cda9252d2c7bc84f3c02f3e591935a (diff)
downloadqemu-e285977e77e534f128413b86cabab68bbffcbe4c.zip
qemu-e285977e77e534f128413b86cabab68bbffcbe4c.tar.gz
qemu-e285977e77e534f128413b86cabab68bbffcbe4c.tar.bz2
linux-user: Remove dead error-checking code
Remove some dead code spotted by Coverity (CID 1009855, 1390854, 1390847). The underlying cause in all these cases is the same: QEMU's put_user operations can't result in errors, but the kernel's equivalent does. So when code was copied from the kernel signal-frame-setup/teardown code, checks on error flags that were needed in the kernel became dead code for us. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20181019161715.12122-1-peter.maydell@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/m68k/signal.c')
-rw-r--r--linux-user/m68k/signal.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/linux-user/m68k/signal.c b/linux-user/m68k/signal.c
index 38bd77e..49ff87c 100644
--- a/linux-user/m68k/signal.c
+++ b/linux-user/m68k/signal.c
@@ -334,9 +334,6 @@ void setup_rt_frame(int sig, struct target_sigaction *ka,
(uint32_t *)(frame->retcode + 0));
__put_user(0x4e40, (uint16_t *)(frame->retcode + 4));
- if (err)
- goto give_sigsegv;
-
/* Set up to return from userspace */
env->aregs[7] = frame_addr;