Skip to content

Commit

Permalink
Use intermediate variable.
Browse files Browse the repository at this point in the history
Signed-off-by: Thiemo Seufer <ths@networkno.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Thiemo Seufer authored and Ralf Baechle committed Oct 29, 2005
1 parent 1ba582a commit 26a51b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/mips/mm/c-r4k.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ static inline void local_r4k_flush_cache_page(void *args)
* If ownes no valid ASID yet, cannot possibly have gotten
* this page into the cache.
*/
if (cpu_context(smp_processor_id(), vma->vm_mm) == 0)
if (cpu_context(smp_processor_id(), mm) == 0)
return;

page &= PAGE_MASK;
Expand Down Expand Up @@ -428,8 +428,8 @@ static inline void local_r4k_flush_cache_page(void *args)
if (cpu_has_vtag_icache) {
int cpu = smp_processor_id();

if (cpu_context(cpu, vma->vm_mm) != 0)
drop_mmu_context(vma->vm_mm, cpu);
if (cpu_context(cpu, mm) != 0)
drop_mmu_context(mm, cpu);
} else
r4k_blast_icache_page_indexed(page);
}
Expand Down

0 comments on commit 26a51b2

Please sign in to comment.