summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_fault.c
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2016-03-29 12:04:27 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2016-03-29 12:04:27 +0000
commit43f60f989d2bd560bb8068fc07da67ba875f25f0 (patch)
treece401aab33729bc18aeeca989e248288247373eb /sys/uvm/uvm_fault.c
parentb7ea3b5102697b38950a3b2c6e97a1f03f7e727e (diff)
Remove dead assignments and now unused variables.
Found by LLVM/Clang Static Analyzer. ok mpi@ stefan@
Diffstat (limited to 'sys/uvm/uvm_fault.c')
-rw-r--r--sys/uvm/uvm_fault.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/uvm/uvm_fault.c b/sys/uvm/uvm_fault.c
index 99d270ccdee..a6858c3e157 100644
--- a/sys/uvm/uvm_fault.c
+++ b/sys/uvm/uvm_fault.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_fault.c,v 1.88 2016/03/07 18:44:00 naddy Exp $ */
+/* $OpenBSD: uvm_fault.c,v 1.89 2016/03/29 12:04:26 chl Exp $ */
/* $NetBSD: uvm_fault.c,v 1.51 2000/08/06 00:22:53 thorpej Exp $ */
/*
@@ -1254,11 +1254,8 @@ int
uvm_fault_wire(vm_map_t map, vaddr_t start, vaddr_t end, vm_prot_t access_type)
{
vaddr_t va;
- pmap_t pmap;
int rv;
- pmap = vm_map_pmap(map);
-
/*
* now fault it in a page at a time. if the fault fails then we have
* to undo what we have done. note that in uvm_fault PROT_NONE