From owner-svn-src-all@FreeBSD.ORG Sun Dec 19 16:07:54 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72330106566B; Sun, 19 Dec 2010 16:07:54 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4632E8FC15; Sun, 19 Dec 2010 16:07:54 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id oBJG7sU6096631; Sun, 19 Dec 2010 16:07:54 GMT (envelope-from nwhitehorn@svn.freebsd.org) Received: (from nwhitehorn@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oBJG7ssR096628; Sun, 19 Dec 2010 16:07:54 GMT (envelope-from nwhitehorn@svn.freebsd.org) Message-Id: <201012191607.oBJG7ssR096628@svn.freebsd.org> From: Nathan Whitehorn Date: Sun, 19 Dec 2010 16:07:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r216563 - head/sys/powerpc/aim X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Dec 2010 16:07:54 -0000 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); }