summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2009-06-17 13:13:58 -0700
committerGeert Uytterhoeven <geert@linux-m68k.org>2009-08-26 23:14:49 +0200
commitdc71c7d5dbd8cd8bb6e3b548ddc0454b64ded5f8 (patch)
tree37d1074eca97e47d9c4f6ae2ca13037019efa095 /arch
parentdd9b3e84f2095ed19582f4df5d20e1e40c01ca3c (diff)
downloadlinux-dc71c7d5dbd8cd8bb6e3b548ddc0454b64ded5f8.tar.gz
linux-dc71c7d5dbd8cd8bb6e3b548ddc0454b64ded5f8.tar.bz2
linux-dc71c7d5dbd8cd8bb6e3b548ddc0454b64ded5f8.zip
arch/m68k/include/asm/motorola_pgalloc.h: fix kunmap arg
arch/m68k/include/asm/motorola_pgalloc.h: In function 'pte_alloc_one': arch/m68k/include/asm/motorola_pgalloc.h:44: warning: passing argument 1 of 'kunmap' from incompatible pointer type Also, remove unneeded test for kmap() failure. Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/m68k/include/asm/motorola_pgalloc.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/m68k/include/asm/motorola_pgalloc.h b/arch/m68k/include/asm/motorola_pgalloc.h
index 15ee4c74a9f0..2f02f264e694 100644
--- a/arch/m68k/include/asm/motorola_pgalloc.h
+++ b/arch/m68k/include/asm/motorola_pgalloc.h
@@ -36,12 +36,10 @@ static inline pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long addres
return NULL;
pte = kmap(page);
- if (pte) {
- __flush_page_to_ram(pte);
- flush_tlb_kernel_page(pte);
- nocache_page(pte);
- }
- kunmap(pte);
+ __flush_page_to_ram(pte);
+ flush_tlb_kernel_page(pte);
+ nocache_page(pte);
+ kunmap(page);
pgtable_page_ctor(page);
return page;
}