Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c50cade95b075e1116fc4fae6a9c63829720efb9
Commit:     c50cade95b075e1116fc4fae6a9c63829720efb9
Parent:     b5eb551145395382ddf302548991a5fbaabc5341
Author:     Ralf Baechle <[EMAIL PROTECTED]>
AuthorDate: Thu Oct 4 16:57:08 2007 +0100
Committer:  Ralf Baechle <[EMAIL PROTECTED]>
CommitDate: Thu Oct 11 23:46:18 2007 +0100

    [MIPS] SMP: Kill useless casts.
    
    Signed-off-by: Ralf Baechle <[EMAIL PROTECTED]>
---
 arch/mips/kernel/smp.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c
index 5ca3809..54464fd 100644
--- a/arch/mips/kernel/smp.c
+++ b/arch/mips/kernel/smp.c
@@ -373,7 +373,7 @@ void flush_tlb_mm(struct mm_struct *mm)
        preempt_disable();
 
        if ((atomic_read(&mm->mm_users) != 1) || (current->mm != mm)) {
-               smp_on_other_tlbs(flush_tlb_mm_ipi, (void *)mm);
+               smp_on_other_tlbs(flush_tlb_mm_ipi, mm);
        } else {
                cpumask_t mask = cpu_online_map;
                unsigned int cpu;
@@ -396,7 +396,7 @@ struct flush_tlb_data {
 
 static void flush_tlb_range_ipi(void *info)
 {
-       struct flush_tlb_data *fd = (struct flush_tlb_data *)info;
+       struct flush_tlb_data *fd = info;
 
        local_flush_tlb_range(fd->vma, fd->addr1, fd->addr2);
 }
@@ -412,7 +412,7 @@ void flush_tlb_range(struct vm_area_struct *vma, unsigned 
long start, unsigned l
                fd.vma = vma;
                fd.addr1 = start;
                fd.addr2 = end;
-               smp_on_other_tlbs(flush_tlb_range_ipi, (void *)&fd);
+               smp_on_other_tlbs(flush_tlb_range_ipi, &fd);
        } else {
                cpumask_t mask = cpu_online_map;
                unsigned int cpu;
@@ -428,7 +428,7 @@ void flush_tlb_range(struct vm_area_struct *vma, unsigned 
long start, unsigned l
 
 static void flush_tlb_kernel_range_ipi(void *info)
 {
-       struct flush_tlb_data *fd = (struct flush_tlb_data *)info;
+       struct flush_tlb_data *fd = info;
 
        local_flush_tlb_kernel_range(fd->addr1, fd->addr2);
 }
@@ -439,12 +439,12 @@ void flush_tlb_kernel_range(unsigned long start, unsigned 
long end)
 
        fd.addr1 = start;
        fd.addr2 = end;
-       on_each_cpu(flush_tlb_kernel_range_ipi, (void *)&fd, 1, 1);
+       on_each_cpu(flush_tlb_kernel_range_ipi, &fd, 1, 1);
 }
 
 static void flush_tlb_page_ipi(void *info)
 {
-       struct flush_tlb_data *fd = (struct flush_tlb_data *)info;
+       struct flush_tlb_data *fd = info;
 
        local_flush_tlb_page(fd->vma, fd->addr1);
 }
@@ -457,7 +457,7 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned 
long page)
 
                fd.vma = vma;
                fd.addr1 = page;
-               smp_on_other_tlbs(flush_tlb_page_ipi, (void *)&fd);
+               smp_on_other_tlbs(flush_tlb_page_ipi, &fd);
        } else {
                cpumask_t mask = cpu_online_map;
                unsigned int cpu;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to