summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2018-04-28 03:13:04 +0000
committervisa <visa@openbsd.org>2018-04-28 03:13:04 +0000
commit36bb23f12acb06197346657619c449dc8e0cae8e (patch)
treec24cd9be1c65672fca95ccca71d5542d91c3c25f /sys/kern/tty.c
parentrasops: implement scrollback (diff)
downloadwireguard-openbsd-36bb23f12acb06197346657619c449dc8e0cae8e.tar.xz
wireguard-openbsd-36bb23f12acb06197346657619c449dc8e0cae8e.zip
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/tty.c')
-rw-r--r--sys/kern/tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index b9fec5b6bb9..1a562b50f99 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.137 2018/02/19 08:59:52 mpi Exp $ */
+/* $OpenBSD: tty.c,v 1.138 2018/04/28 03:13:04 visa Exp $ */
/* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */
/*-
@@ -797,7 +797,7 @@ ttioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, struct proc *p)
return (error);
vn_lock(nid.ni_vp, LK_EXCLUSIVE | LK_RETRY, p);
error = VOP_ACCESS(nid.ni_vp, VREAD, p->p_ucred, p);
- VOP_UNLOCK(nid.ni_vp, p);
+ VOP_UNLOCK(nid.ni_vp);
vrele(nid.ni_vp);
if (error)
return (error);