From 5919fef7acda53ab819414a61affd59fd0cded68 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 28 Oct 2009 17:03:20 +0000 Subject: [PATCH] Remove useless for statement. i isn't used after it. Remove needless braces. --- sys/mips/mips/pmap.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/mips/mips/pmap.c b/sys/mips/mips/pmap.c index bfdadb7d4cca..844f203a97c4 100644 --- a/sys/mips/mips/pmap.c +++ b/sys/mips/mips/pmap.c @@ -291,9 +291,8 @@ pmap_bootstrap(void) /* Sort. */ again: for (i = 0; phys_avail[i + 1] != 0; i += 2) { - if (phys_avail[i + 1] >= MIPS_KSEG0_LARGEST_PHYS) { + if (phys_avail[i + 1] >= MIPS_KSEG0_LARGEST_PHYS) memory_larger_than_512meg++; - } if (i < 2) continue; if (phys_avail[i - 2] > phys_avail[i]) { @@ -414,9 +413,6 @@ pmap_bootstrap(void) for (i = 0, j = (virtual_avail >> SEGSHIFT); i < nkpt; i++, j++) kernel_segmap[j] = (pd_entry_t)(pgtab + (i * NPTEPG)); - for (i = 0; phys_avail[i + 2]; i += 2) - continue; - /* * The kernel's pmap is statically allocated so we don't have to use * pmap_create, which is unlikely to work correctly at this part of