From fc606bb11bfee110a089565693711c6f0af76fab Mon Sep 17 00:00:00 2001 From: Oleksandr Tymoshenko Date: Fri, 25 Jan 2019 19:58:56 +0000 Subject: [PATCH] [mips] remove check that is always false (unsinged < 0) cpuid and local cpu variable are unsigned so checking if value is less than zero always yields false. PR: 211088 Submitted by: David Binderman MFC after: 1 week --- sys/mips/mips/tlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/mips/mips/tlb.c b/sys/mips/mips/tlb.c index 8d329baa0114..d2df51cb018c 100644 --- a/sys/mips/mips/tlb.c +++ b/sys/mips/mips/tlb.c @@ -348,7 +348,7 @@ DB_SHOW_COMMAND(tlb, ddb_dump_tlb) else cpu = PCPU_GET(cpuid); - if (cpu < 0 || cpu >= mp_ncpus) { + if (cpu >= mp_ncpus) { db_printf("Invalid CPU %u\n", cpu); return; }