Date: Sun, 19 Dec 2010 16:07:54 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r216563 - head/sys/powerpc/aim Message-ID: <201012191607.oBJG7ssR096628@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nwhitehorn Date: Sun Dec 19 16:07:53 2010 New Revision: 216563 URL: http://svn.freebsd.org/changeset/base/216563 Log: Garbage-collect unused variable. Modified: head/sys/powerpc/aim/mmu_oea.c head/sys/powerpc/aim/mmu_oea64.c Modified: head/sys/powerpc/aim/mmu_oea.c ============================================================================== --- head/sys/powerpc/aim/mmu_oea.c Sun Dec 19 14:18:07 2010 (r216562) +++ head/sys/powerpc/aim/mmu_oea.c Sun Dec 19 16:07:53 2010 (r216563) @@ -666,7 +666,6 @@ moea_bootstrap(mmu_t mmup, vm_offset_t k phandle_t chosen, mmu; int sz; int i, j; - int ofw_mappings; vm_size_t size, physsz, hwphyssz; vm_offset_t pa, va, off; void *dpcpu; @@ -868,7 +867,7 @@ moea_bootstrap(mmu_t mmup, vm_offset_t k CTR0(KTR_PMAP, "moea_bootstrap: translations"); sz /= sizeof(*translations); qsort(translations, sz, sizeof (*translations), om_cmp); - for (i = 0, ofw_mappings = 0; i < sz; i++) { + for (i = 0; i < sz; i++) { CTR3(KTR_PMAP, "translation: pa=%#x va=%#x len=%#x", translations[i].om_pa, translations[i].om_va, translations[i].om_len); @@ -881,11 +880,9 @@ moea_bootstrap(mmu_t mmup, vm_offset_t k continue; /* Enter the pages */ - for (off = 0; off < translations[i].om_len; off += PAGE_SIZE) { + for (off = 0; off < translations[i].om_len; off += PAGE_SIZE) moea_kenter(mmup, translations[i].om_va + off, translations[i].om_pa + off); - ofw_mappings++; - } } /* Modified: head/sys/powerpc/aim/mmu_oea64.c ============================================================================== --- head/sys/powerpc/aim/mmu_oea64.c Sun Dec 19 14:18:07 2010 (r216562) +++ head/sys/powerpc/aim/mmu_oea64.c Sun Dec 19 16:07:53 2010 (r216563) @@ -521,7 +521,7 @@ moea64_add_ofw_mappings(mmu_t mmup, phan register_t msr; vm_offset_t off; vm_paddr_t pa_base; - int i, ofw_mappings; + int i; bzero(translations, sz); if (OF_getprop(mmu, "translations", translations, sz) == -1) @@ -531,7 +531,7 @@ moea64_add_ofw_mappings(mmu_t mmup, phan sz /= sizeof(*translations); qsort(translations, sz, sizeof (*translations), om_cmp); - for (i = 0, ofw_mappings = 0; i < sz; i++) { + for (i = 0; i < sz; i++) { CTR3(KTR_PMAP, "translation: pa=%#x va=%#x len=%#x", (uint32_t)(translations[i].om_pa_lo), translations[i].om_va, translations[i].om_len); @@ -558,8 +558,6 @@ moea64_add_ofw_mappings(mmu_t mmup, phan moea64_kenter(mmup, translations[i].om_va + off, pa_base + off); - - ofw_mappings++; } ENABLE_TRANS(msr); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012191607.oBJG7ssR096628>