Re: [PATCH 49/56] sparc: Remove void casts

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

 



[Added maintainer CC]
Jack Stone wrote:
> Remove uneeded void casts
>
> Signed-Off-By: Jack Stone <jwjstone@xxxxxxxxxxx>
> ---
>  arch/sparc/kernel/iommu.c     |    2 +-
>  arch/sparc/kernel/signal32.c  |    6 ++----
>  arch/sparc/kernel/signal_32.c |    6 ++----
>  arch/sparc/kernel/signal_64.c |    3 +--
>  4 files changed, 6 insertions(+), 11 deletions(-)
>
> diff --git a/arch/sparc/kernel/iommu.c b/arch/sparc/kernel/iommu.c
> index d8900e1..792c0e8 100644
> --- a/arch/sparc/kernel/iommu.c
> +++ b/arch/sparc/kernel/iommu.c
> @@ -220,7 +220,7 @@ int iommu_table_init(struct iommu *iommu, int tsbsize,
>  		printk(KERN_ERR "IOMMU: Error, gfp(tsb) failed.\n");
>  		goto out_free_dummy_page;
>  	}
> -	iommu->page_table = (iopte_t *)page_address(page);
> +	iommu->page_table = page_address(page);
>  
>  	for (i = 0; i < num_tsb_entries; i++)
>  		iopte_make_dummy(iommu, &iommu->page_table[i]);
> diff --git a/arch/sparc/kernel/signal32.c b/arch/sparc/kernel/signal32.c
> index ba5b09a..432a0ad 100644
> --- a/arch/sparc/kernel/signal32.c
> +++ b/arch/sparc/kernel/signal32.c
> @@ -468,8 +468,7 @@ static void setup_frame32(struct k_sigaction *ka, struct pt_regs *regs,
>  	if (!(current_thread_info()->fpsaved[0] & FPRS_FEF))
>  		sigframe_size -= sizeof(__siginfo_fpu_t);
>  
> -	sf = (struct signal_frame32 __user *)
> -		get_sigframe(&ka->sa, regs, sigframe_size);
> +	sf = get_sigframe(&ka->sa, regs, sigframe_size);
>  	
>  	if (invalid_frame_pointer(sf, sigframe_size))
>  		goto sigill;
> @@ -603,8 +602,7 @@ static void setup_rt_frame32(struct k_sigaction *ka, struct pt_regs *regs,
>  	if (!(current_thread_info()->fpsaved[0] & FPRS_FEF))
>  		sigframe_size -= sizeof(__siginfo_fpu_t);
>  
> -	sf = (struct rt_signal_frame32 __user *)
> -		get_sigframe(&ka->sa, regs, sigframe_size);
> +	sf = get_sigframe(&ka->sa, regs, sigframe_size);
>  	
>  	if (invalid_frame_pointer(sf, sigframe_size))
>  		goto sigill;
> diff --git a/arch/sparc/kernel/signal_32.c b/arch/sparc/kernel/signal_32.c
> index 181d069..45ef48e 100644
> --- a/arch/sparc/kernel/signal_32.c
> +++ b/arch/sparc/kernel/signal_32.c
> @@ -326,8 +326,7 @@ static void setup_frame(struct k_sigaction *ka, struct pt_regs *regs,
>  	if (!used_math())
>  		sigframe_size -= sizeof(__siginfo_fpu_t);
>  
> -	sf = (struct signal_frame __user *)
> -		get_sigframe(&ka->sa, regs, sigframe_size);
> +	sf = get_sigframe(&ka->sa, regs, sigframe_size);
>  
>  	if (invalid_frame_pointer(sf, sigframe_size))
>  		goto sigill_and_return;
> @@ -402,8 +401,7 @@ static void setup_rt_frame(struct k_sigaction *ka, struct pt_regs *regs,
>  	sigframe_size = RT_ALIGNEDSZ;
>  	if (!used_math())
>  		sigframe_size -= sizeof(__siginfo_fpu_t);
> -	sf = (struct rt_signal_frame __user *)
> -		get_sigframe(&ka->sa, regs, sigframe_size);
> +	sf = get_sigframe(&ka->sa, regs, sigframe_size);
>  	if (invalid_frame_pointer(sf, sigframe_size))
>  		goto sigill;
>  	if (current_thread_info()->w_saved != 0)
> diff --git a/arch/sparc/kernel/signal_64.c b/arch/sparc/kernel/signal_64.c
> index ec82d76..638bfe6 100644
> --- a/arch/sparc/kernel/signal_64.c
> +++ b/arch/sparc/kernel/signal_64.c
> @@ -422,8 +422,7 @@ setup_rt_frame(struct k_sigaction *ka, struct pt_regs *regs,
>  	if (!(current_thread_info()->fpsaved[0] & FPRS_FEF))
>  		sigframe_size -= sizeof(__siginfo_fpu_t);
>  
> -	sf = (struct rt_signal_frame __user *)
> -		get_sigframe(ka, regs, sigframe_size);
> +	sf = get_sigframe(ka, regs, sigframe_size);
>  	
>  	if (invalid_frame_pointer (sf, sigframe_size))
>  		goto sigill;
>   

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux