summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_sync.c
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2018-05-27 06:02:14 +0000
committervisa <visa@openbsd.org>2018-05-27 06:02:14 +0000
commit08107a0b7d66fc523db27a131ca819e179fb022c (patch)
treedec151949c5d42646c0506366997d59fb2f1e1c0 /sys/kern/vfs_sync.c
parentDelete obsolete reference to setting segment registers (diff)
downloadwireguard-openbsd-08107a0b7d66fc523db27a131ca819e179fb022c.tar.xz
wireguard-openbsd-08107a0b7d66fc523db27a131ca819e179fb022c.zip
Drop unnecessary `p' parameter from vget(9).
OK mpi@
Diffstat (limited to 'sys/kern/vfs_sync.c')
-rw-r--r--sys/kern/vfs_sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_sync.c b/sys/kern/vfs_sync.c
index 755ca7411cb..1e8fe91ccdc 100644
--- a/sys/kern/vfs_sync.c
+++ b/sys/kern/vfs_sync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_sync.c,v 1.58 2018/04/28 03:13:05 visa Exp $ */
+/* $OpenBSD: vfs_sync.c,v 1.59 2018/05/27 06:02:14 visa Exp $ */
/*
* Portions of this code are:
@@ -156,7 +156,7 @@ sched_sync(struct proc *p)
syncer_delayno = 0;
while ((vp = LIST_FIRST(slp)) != NULL) {
- if (vget(vp, LK_EXCLUSIVE | LK_NOWAIT, p)) {
+ if (vget(vp, LK_EXCLUSIVE | LK_NOWAIT)) {
/*
* If we fail to get the lock, we move this
* vnode one second ahead in time.