summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2004-09-23 06:31:36 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2004-09-23 06:31:36 +0000
commit1933f044bcf097798cef04369fec2999a3b6e2a9 (patch)
tree8b1d10d153a722052b8b40e46d49c0cd35f5d9c4 /sys/uvm
parentba02f180a1ca13eaf2c36c86ec52666002661315 (diff)
vput on all paths after vget (currently unused code). from patrick latifi
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_swap.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c
index 39cb3073ca7..ecbb9f6086a 100644
--- a/sys/uvm/uvm_swap.c
+++ b/sys/uvm/uvm_swap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_swap.c,v 1.58 2003/12/10 07:34:03 itojun Exp $ */
+/* $OpenBSD: uvm_swap.c,v 1.59 2004/09/23 06:31:35 tedu Exp $ */
/* $NetBSD: uvm_swap.c,v 1.40 2000/11/17 11:39:39 mrg Exp $ */
/*
@@ -762,7 +762,7 @@ sys_swapctl(p, v, retval)
case SWAP_DUMPDEV:
if (vp->v_type != VBLK) {
error = ENOTBLK;
- goto out;
+ break;
}
dumpdev = vp->v_rdev;
break;
@@ -867,9 +867,7 @@ sys_swapctl(p, v, retval)
/*
* do the real work.
*/
- if ((error = swap_off(p, sdp)) != 0)
- goto out;
-
+ error = swap_off(p, sdp);
break;
default: