diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2018-04-28 03:13:06 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2018-04-28 03:13:06 +0000 |
commit | 356327a519a213c5d0b435c6d4488b3c5f0b3efc (patch) | |
tree | 446ed191773422bb8b098be33ad3b13d10a3c43e /sys/kern/kern_ktrace.c | |
parent | d8f64152dfaaddf25de9dca020b84c322b874855 (diff) |
Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is always
curproc that does the locking or unlocking, so the proc parameter
is pointless and can be dropped.
OK mpi@, deraadt@
Diffstat (limited to 'sys/kern/kern_ktrace.c')
-rw-r--r-- | sys/kern/kern_ktrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c index 5bd55d71d5f..8a14c70d1e1 100644 --- a/sys/kern/kern_ktrace.c +++ b/sys/kern/kern_ktrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_ktrace.c,v 1.95 2018/02/19 08:59:52 mpi Exp $ */ +/* $OpenBSD: kern_ktrace.c,v 1.96 2018/04/28 03:13:04 visa Exp $ */ /* $NetBSD: kern_ktrace.c,v 1.23 1996/02/09 18:59:36 christos Exp $ */ /* @@ -511,7 +511,7 @@ sys_ktrace(struct proc *p, void *v, register_t *retval) return error; vp = nd.ni_vp; - VOP_UNLOCK(vp, p); + VOP_UNLOCK(vp); } error = doktrace(vp, SCARG(uap, ops), SCARG(uap, facs), |