Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

-4
-4
arch/mips/mm/tlb-r3k.c
··· 246 246 old_pagemask = read_c0_pagemask(); 247 247 w = read_c0_wired(); 248 248 write_c0_wired(w + 1); 249 - if (read_c0_wired() != w + 1) { 250 - printk("[tlbwired] No WIRED reg?\n"); 251 - return; 252 - } 253 249 write_c0_index(w << 8); 254 250 write_c0_pagemask(pagemask); 255 251 write_c0_entryhi(entryhi);