svn commit: r198550 - projects/mips/sys/mips/mips
Warner Losh
imp at FreeBSD.org
Wed Oct 28 17:03:20 UTC 2009
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
More information about the svn-src-projects
mailing list