Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Oct 2009 17:03:20 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r198550 - projects/mips/sys/mips/mips
Message-ID:  <200910281703.n9SH3K98067210@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Wed Oct 28 17:03:20 2009
New Revision: 198550
URL: http://svn.freebsd.org/changeset/base/198550

Log:
  Remove useless for statement.  i isn't used after it.
  Remove needless braces.

Modified:
  projects/mips/sys/mips/mips/pmap.c

Modified: projects/mips/sys/mips/mips/pmap.c
==============================================================================
--- projects/mips/sys/mips/mips/pmap.c	Wed Oct 28 16:54:48 2009	(r198549)
+++ projects/mips/sys/mips/mips/pmap.c	Wed Oct 28 17:03:20 2009	(r198550)
@@ -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 @@ again:
 	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910281703.n9SH3K98067210>