From aa28b9a6d024fc39940a8bf6e59c28dbaafc6950 Mon Sep 17 00:00:00 2001 From: mpi Date: Fri, 11 Aug 2017 21:24:19 +0000 Subject: Remove NET_LOCK()'s argument. Tested by Hrvoje Popovski, ok bluhm@ --- sys/nfs/nfs_socket.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/nfs/nfs_socket.c') diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c index 5ed5a9ed26a..9924a5e5edc 100644 --- a/sys/nfs/nfs_socket.c +++ b/sys/nfs/nfs_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_socket.c,v 1.122 2017/08/10 19:20:43 mpi Exp $ */ +/* $OpenBSD: nfs_socket.c,v 1.123 2017/08/11 21:24:20 mpi Exp $ */ /* $NetBSD: nfs_socket.c,v 1.27 1996/04/15 20:20:00 thorpej Exp $ */ /* @@ -1137,9 +1137,9 @@ nfs_timer(void *arg) struct nfsreq *rep; struct mbuf *m; struct socket *so; - int timeo, s, error; + int timeo, error; - NET_LOCK(s); + NET_LOCK(); TAILQ_FOREACH(rep, &nmp->nm_reqsq, r_chain) { if (rep->r_mrep || (rep->r_flags & R_SOFTTERM)) continue; @@ -1222,7 +1222,7 @@ nfs_timer(void *arg) } } } - NET_UNLOCK(s); + NET_UNLOCK(); timeout_add(&nmp->nm_rtimeout, nfs_ticks); } -- cgit v1.2.3-59-g8ed1b