[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH 2/7] linux-user,s390x: remove useless cast
From: |
Laurent Vivier |
Subject: |
[Qemu-trivial] [PATCH 2/7] linux-user,s390x: remove useless cast |
Date: |
Wed, 15 Jun 2016 18:14:32 +0200 |
This patch is the result of coccinelle script
scripts/coccinelle/typecast.cocci
CC: Riku Voipio <address@hidden>
CC: Alexander Graf <address@hidden>
Signed-off-by: Laurent Vivier <address@hidden>
---
linux-user/signal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/linux-user/signal.c b/linux-user/signal.c
index 61c1145..df3d584 100644
--- a/linux-user/signal.c
+++ b/linux-user/signal.c
@@ -4232,7 +4232,7 @@ static void setup_frame(int sig, struct target_sigaction
*ka,
env->regs[5] = 0; // FIXME: no clue... current->thread.prot_addr;
/* Place signal number on stack to allow backtrace from handler. */
- __put_user(env->regs[2], (int *) &frame->signo);
+ __put_user(env->regs[2], &frame->signo);
unlock_user_struct(frame, frame_addr, 1);
return;
--
2.5.5
- [Qemu-trivial] [PATCH 0/7] Remove useless casts, Laurent Vivier, 2016/06/15
- [Qemu-trivial] [PATCH 1/7] coccinelle: add a script to remove useless casts, Laurent Vivier, 2016/06/15
- [Qemu-trivial] [PATCH 3/7] s390x: remove useless cast, Laurent Vivier, 2016/06/15
- [Qemu-trivial] [PATCH 2/7] linux-user,s390x: remove useless cast,
Laurent Vivier <=
- [Qemu-trivial] [PATCH 4/7] tricore: remove useless cast, Laurent Vivier, 2016/06/15
- [Qemu-trivial] [PATCH 5/7] fw_cfg: remove useless casts, Laurent Vivier, 2016/06/15
- [Qemu-trivial] [PATCH 6/7] crypto: remove useless casts, Laurent Vivier, 2016/06/15
- [Qemu-trivial] [PATCH 7/7] sheepdog: remove useless casts, Laurent Vivier, 2016/06/15
- Re: [Qemu-trivial] [Qemu-devel] [PATCH 0/7] Remove useless casts, Laurent Vivier, 2016/06/23