Date: Sat, 15 Jan 2011 19:16:05 +0000 (UTC) From: Andreas Tobler <andreast@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r217451 - head/sys/powerpc/aim Message-ID: <201101151916.p0FJG5b5034419@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: andreast Date: Sat Jan 15 19:16:05 2011 New Revision: 217451 URL: http://svn.freebsd.org/changeset/base/217451 Log: Remove unused variables. Spotted by a cppcheck (devel/cppcheck, http://sourceforge.net/projects/cppcheck) run. Approved by: nwhitehorn (mentor) Modified: head/sys/powerpc/aim/slb.c Modified: head/sys/powerpc/aim/slb.c ============================================================================== --- head/sys/powerpc/aim/slb.c Sat Jan 15 19:05:06 2011 (r217450) +++ head/sys/powerpc/aim/slb.c Sat Jan 15 19:16:05 2011 (r217451) @@ -200,9 +200,7 @@ make_intermediate(uint64_t esid, struct uint64_t kernel_va_to_slbv(vm_offset_t va) { - uint64_t esid, slbv; - - esid = (uintptr_t)va >> ADDR_SR_SHFT; + uint64_t slbv; /* Set kernel VSID to deterministic value */ slbv = (KERNEL_VSID((uintptr_t)va >> ADDR_SR_SHFT)) << SLBV_VSID_SHIFT; @@ -485,18 +483,11 @@ slb_uma_real_alloc(uma_zone_t zone, int static vm_offset_t realmax = 0; void *va; vm_page_t m; - int pflags; if (realmax == 0) realmax = platform_real_maxaddr(); *flags = UMA_SLAB_PRIV; - if ((wait & (M_NOWAIT|M_USE_RESERVE)) == M_NOWAIT) - pflags = VM_ALLOC_INTERRUPT | VM_ALLOC_WIRED; - else - pflags = VM_ALLOC_SYSTEM | VM_ALLOC_WIRED; - if (wait & M_ZERO) - pflags |= VM_ALLOC_ZERO; for (;;) { m = vm_phys_alloc_contig(1, 0, realmax, PAGE_SIZE,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101151916.p0FJG5b5034419>