lkml.org 
[lkml]   [2009]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 43/56] s390: Remove void casts
[Added maintainer CCs]
Jack Stone wrote:
> Remove uneeded void casts
>
> Signed-Off-By: Jack Stone <jwjstone@fastmail.fm>
> ---
> arch/s390/math-emu/math.c | 26 +++++++++++++-------------
> 1 files changed, 13 insertions(+), 13 deletions(-)
>
> diff --git a/arch/s390/math-emu/math.c b/arch/s390/math-emu/math.c
> index 3ee78cc..c1d43c9 100644
> --- a/arch/s390/math-emu/math.c
> +++ b/arch/s390/math-emu/math.c
> @@ -1917,7 +1917,7 @@ int math_emu_ed(__u8 *opcode, struct pt_regs * regs) {
>
> emu_store_regd((opcode[1] >> 4) & 15);
> opc = *((__u32 *) opcode);
> - dxb = (__u64 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> + dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
> mathemu_copy_from_user(&temp, dxb, 8);
> /* call the emulation function */
> _fex = ((int (*)(struct pt_regs *, int, double *))
> @@ -1932,7 +1932,7 @@ int math_emu_ed(__u8 *opcode, struct pt_regs * regs) {
>
> emu_store_rege((opcode[1] >> 4) & 15);
> opc = *((__u32 *) opcode);
> - dxb = (__u32 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> + dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
> mathemu_get_user(temp, dxb);
> /* call the emulation function */
> _fex = ((int (*)(struct pt_regs *, int, float *))
> @@ -1948,7 +1948,7 @@ int math_emu_ed(__u8 *opcode, struct pt_regs * regs) {
> emu_store_regd((opcode[1] >> 4) & 15);
> emu_store_regd((opcode[4] >> 4) & 15);
> opc = *((__u32 *) opcode);
> - dxb = (__u64 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> + dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
> mathemu_copy_from_user(&temp, dxb, 8);
> /* call the emulation function */
> _fex = ((int (*)(struct pt_regs *, int, double *, int))
> @@ -1964,7 +1964,7 @@ int math_emu_ed(__u8 *opcode, struct pt_regs * regs) {
> emu_store_rege((opcode[1] >> 4) & 15);
> emu_store_rege((opcode[4] >> 4) & 15);
> opc = *((__u32 *) opcode);
> - dxb = (__u32 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> + dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
> mathemu_get_user(temp, dxb);
> /* call the emulation function */
> _fex = ((int (*)(struct pt_regs *, int, float *, int))
> @@ -1982,7 +1982,7 @@ int math_emu_ed(__u8 *opcode, struct pt_regs * regs) {
> return SIGILL;
> emu_store_regd((opcode[1] >> 4) & 15);
> opc = *((__u32 *) opcode);
> - dxb = (__u64 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> + dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
> mathemu_copy_from_user(&temp, dxb, 8);
> /* call the emulation function */
> _fex = ((int (*)(struct pt_regs *, int, double *))
> @@ -1999,7 +1999,7 @@ int math_emu_ed(__u8 *opcode, struct pt_regs * regs) {
> __u32 opc;
> emu_store_rege((opcode[1] >> 4) & 15);
> opc = *((__u32 *) opcode);
> - dxb = (__u32 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> + dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
> mathemu_get_user(temp, dxb);
> /* call the emulation function */
> _fex = ((int (*)(struct pt_regs *, int, float *))
> @@ -2017,7 +2017,7 @@ int math_emu_ed(__u8 *opcode, struct pt_regs * regs) {
> return SIGILL;
> emu_store_rege((opcode[1] >> 4) & 15);
> opc = *((__u32 *) opcode);
> - dxb = (__u32 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> + dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
> mathemu_get_user(temp, dxb);
> /* call the emulation function */
> _fex = ((int (*)(struct pt_regs *, int, float *))
> @@ -2148,7 +2148,7 @@ int math_emu_ld(__u8 *opcode, struct pt_regs * regs) {
> __u32 opc = *((__u32 *) opcode);
> __u64 *dxb;
>
> - dxb = (__u64 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> + dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
> mathemu_copy_from_user(&fp_regs->fprs[(opc >> 20) & 0xf].d, dxb, 8);
> return 0;
> }
> @@ -2161,7 +2161,7 @@ int math_emu_le(__u8 *opcode, struct pt_regs * regs) {
> __u32 opc = *((__u32 *) opcode);
> __u32 *mem, *dxb;
>
> - dxb = (__u32 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> + dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
> mem = (__u32 *) (&fp_regs->fprs[(opc >> 20) & 0xf].f);
> mathemu_get_user(mem[0], dxb);
> return 0;
> @@ -2175,7 +2175,7 @@ int math_emu_std(__u8 *opcode, struct pt_regs * regs) {
> __u32 opc = *((__u32 *) opcode);
> __u64 *dxb;
>
> - dxb = (__u64 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> + dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
> mathemu_copy_to_user(dxb, &fp_regs->fprs[(opc >> 20) & 0xf].d, 8);
> return 0;
> }
> @@ -2188,7 +2188,7 @@ int math_emu_ste(__u8 *opcode, struct pt_regs * regs) {
> __u32 opc = *((__u32 *) opcode);
> __u32 *mem, *dxb;
>
> - dxb = (__u32 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> + dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
> mem = (__u32 *) (&fp_regs->fprs[(opc >> 20) & 0xf].f);
> mathemu_put_user(mem[0], dxb);
> return 0;
> @@ -2201,7 +2201,7 @@ int math_emu_lfpc(__u8 *opcode, struct pt_regs *regs) {
> __u32 opc = *((__u32 *) opcode);
> __u32 *dxb, temp;
>
> - dxb= (__u32 *) calc_addr(regs, 0, opc>>12, opc);
> + dxb= calc_addr(regs, 0, opc>>12, opc);
> mathemu_get_user(temp, dxb);
> if ((temp & ~FPC_VALID_MASK) != 0)
> return SIGILL;
> @@ -2216,7 +2216,7 @@ int math_emu_stfpc(__u8 *opcode, struct pt_regs *regs) {
> __u32 opc = *((__u32 *) opcode);
> __u32 *dxb;
>
> - dxb= (__u32 *) calc_addr(regs, 0, opc>>12, opc);
> + dxb= calc_addr(regs, 0, opc>>12, opc);
> mathemu_put_user(current->thread.fp_regs.fpc, dxb);
> return 0;
> }
>



\
 
 \ /
  Last update: 2009-04-09 12:29    [W:0.362 / U:7.352 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site