svn commit: r217451 - head/sys/powerpc/aim
Andreas Tobler
andreast at FreeBSD.org
Sat Jan 15 19:16:06 UTC 2011
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,
More information about the svn-src-all
mailing list