summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs_vfsops.c
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2018-04-28 03:13:06 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2018-04-28 03:13:06 +0000
commit356327a519a213c5d0b435c6d4488b3c5f0b3efc (patch)
tree446ed191773422bb8b098be33ad3b13d10a3c43e /sys/nfs/nfs_vfsops.c
parentd8f64152dfaaddf25de9dca020b84c322b874855 (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/nfs/nfs_vfsops.c')
-rw-r--r--sys/nfs/nfs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c
index bd1074d76c2..628a381f3cc 100644
--- a/sys/nfs/nfs_vfsops.c
+++ b/sys/nfs/nfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_vfsops.c,v 1.117 2018/04/09 09:39:53 mpi Exp $ */
+/* $OpenBSD: nfs_vfsops.c,v 1.118 2018/04/28 03:13:05 visa Exp $ */
/* $NetBSD: nfs_vfsops.c,v 1.46.4.1 1996/05/25 22:40:35 fvdl Exp $ */
/*
@@ -698,7 +698,7 @@ mountnfs(struct nfs_args *argp, struct mount *mp, struct mbuf *nam,
if (vp->v_type == VNON)
vp->v_type = VDIR;
vp->v_flag = VROOT;
- VOP_UNLOCK(vp, curproc);
+ VOP_UNLOCK(vp);
*vpp = vp;
return (0);