diff mbox

[PULL,v2,12/17] signal/ppc/do_setcontext remove __get_user return check

Message ID 9e918dc92723ee50a82d06296b3a14621d9eb52c.1403016610.git.riku.voipio@linaro.org
State Accepted
Commit 9e918dc92723ee50a82d06296b3a14621d9eb52c
Headers show

Commit Message

Riku Voipio June 17, 2014, 2:56 p.m. UTC
From: Riku Voipio <riku.voipio@linaro.org>

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>
---
 linux-user/signal.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox

Patch

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;