summaryrefslogtreecommitdiff
path: root/arch/mips/mm/tlb-r3k.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2008-07-22 21:04:38 +0400
committerRalf Baechle <ralf@linux-mips.org>2008-07-31 00:54:33 +0400
commitaf6dc22b03a95c31b690f299b2fd7acb279fe7f5 (patch)
tree9cdec2a13b3a2dcddf16be61bae2ec9cc9a33f65 /arch/mips/mm/tlb-r3k.c
parent660fc1f4d88b0f5e4bb936e4a5a9b95b70df9e58 (diff)
downloadlinux-af6dc22b03a95c31b690f299b2fd7acb279fe7f5.tar.xz
[MIPS] tlb-r4k: Nuke broken paranoia error test.
Bug originally found and reported by Julia Lawall <julia@diku.dk>. I decieded that the whole error check was mostly useless paranoia and should be discarded. It would only ever trigger if r3k_have_wired_reg has a wrong value. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mm/tlb-r3k.c')
-rw-r--r--arch/mips/mm/tlb-r3k.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/mips/mm/tlb-r3k.c b/arch/mips/mm/tlb-r3k.c
index a782549ac80e..f0cf46adb978 100644
--- a/arch/mips/mm/tlb-r3k.c
+++ b/arch/mips/mm/tlb-r3k.c
@@ -246,10 +246,6 @@ void __init add_wired_entry(unsigned long entrylo0, unsigned long entrylo1,
old_pagemask = read_c0_pagemask();
w = read_c0_wired();
write_c0_wired(w + 1);
- if (read_c0_wired() != w + 1) {
- printk("[tlbwired] No WIRED reg?\n");
- return;
- }
write_c0_index(w << 8);
write_c0_pagemask(pagemask);
write_c0_entryhi(entryhi);