qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 12/18] signal/ppc/do_setcontext remove __get_user ret


From: riku . voipio
Subject: [Qemu-devel] [PULL 12/18] signal/ppc/do_setcontext remove __get_user return check
Date: Mon, 9 Jun 2014 15:46:37 +0300

From: Riku Voipio <address@hidden>

The last remaining check for return value of __get_user.

Signed-off-by: Riku Voipio <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Cc: Alexander Graf <address@hidden>
---
 linux-user/signal.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/linux-user/signal.c b/linux-user/signal.c
index a76aa92..62f2346 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;
-- 
2.0.0.rc2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]