diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2008-09-16 18:52:53 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2008-09-16 18:52:53 +0000 |
commit | fb6ae06dc5a8218bd9fb19798e4adcce4e2d8b28 (patch) | |
tree | 78315496029ecb53e621e33d34c2ad9cfb04b97b /sys/uvm | |
parent | c1b27ada96eb1302871896c121672f3f16d442c0 (diff) |
remove dead stores and newly created unused variables.
Found by LLVM/Clang Static Analyzer.
ok miod@ art@
Diffstat (limited to 'sys/uvm')
-rw-r--r-- | sys/uvm/uvm_fault.c | 4 | ||||
-rw-r--r-- | sys/uvm/uvm_swap.c | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/sys/uvm/uvm_fault.c b/sys/uvm/uvm_fault.c index aacf177a865..981f21d7521 100644 --- a/sys/uvm/uvm_fault.c +++ b/sys/uvm/uvm_fault.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_fault.c,v 1.49 2007/06/18 21:51:15 pedro Exp $ */ +/* $OpenBSD: uvm_fault.c,v 1.50 2008/09/16 18:52:52 chl Exp $ */ /* $NetBSD: uvm_fault.c,v 1.51 2000/08/06 00:22:53 thorpej Exp $ */ /* @@ -772,7 +772,7 @@ ReFault: anons += nback; startva += (nback << PAGE_SHIFT); npages -= nback; - nback = centeridx = 0; + centeridx = 0; } /* locked: maps(read), amap(if there) */ diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c index 113889ed1f8..026be0e856c 100644 --- a/sys/uvm/uvm_swap.c +++ b/sys/uvm/uvm_swap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_swap.c,v 1.83 2008/09/13 12:33:52 chl Exp $ */ +/* $OpenBSD: uvm_swap.c,v 1.84 2008/09/16 18:52:52 chl Exp $ */ /* $NetBSD: uvm_swap.c,v 1.40 2000/11/17 11:39:39 mrg Exp $ */ /* @@ -358,14 +358,11 @@ boolean_t uvm_swap_allocpages(struct vm_page **pps, int npages) { int i; - int minus, reserve; boolean_t fail; /* Estimate if we will succeed */ uvm_lock_fpageq(); - minus = uvmexp.free - npages; - reserve = uvmexp.reserve_kernel; fail = uvmexp.free - npages < uvmexp.reserve_kernel; uvm_unlock_fpageq(); |