diff options
author | Riku Voipio <riku.voipio@linaro.org> | 2014-04-23 14:05:09 +0300 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2014-06-17 08:52:08 +0300 |
commit | 9e918dc92723ee50a82d06296b3a14621d9eb52c (patch) | |
tree | 1eb817e66a355e132247b5fdb610503b3dba025e /linux-user | |
parent | be3ef5c7faa780b205151cc8f818beba64809718 (diff) | |
download | hqemu-9e918dc92723ee50a82d06296b3a14621d9eb52c.zip hqemu-9e918dc92723ee50a82d06296b3a14621d9eb52c.tar.gz |
signal/ppc/do_setcontext remove __get_user return check
The last remaining check for return value of __get_user.
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Cc: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/signal.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux-user/signal.c b/linux-user/signal.c index 87e4575..f3b4378 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -4819,8 +4819,7 @@ static int do_setcontext(struct target_ucontext *ucp, CPUPPCState *env, int sig) fprintf (stderr, "do_setcontext: not implemented\n"); return 0; #else - if (__get_user(mcp_addr, &ucp->tuc_regs)) - return 1; + __get_user(mcp_addr, &ucp->tuc_regs); if (!lock_user_struct(VERIFY_READ, mcp, mcp_addr, 1)) return 1; |