]> Git Repo - qemu.git/commitdiff
signal/ppc/do_setcontext remove __get_user return check
authorRiku Voipio <[email protected]>
Wed, 23 Apr 2014 11:05:09 +0000 (14:05 +0300)
committerRiku Voipio <[email protected]>
Tue, 17 Jun 2014 05:52:08 +0000 (08:52 +0300)
The last remaining check for return value of __get_user.

Signed-off-by: Riku Voipio <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Cc: Alexander Graf <[email protected]>
linux-user/signal.c

index 87e457529d5fe345bba8078b55eb36c643cc4656..f3b43787fd5e320b55c03d028c0a7201f6c4d518 100644 (file)
@@ -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;
This page took 0.035202 seconds and 4 git commands to generate.