summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs_vnops.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-04-13 23:44:12 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-04-13 23:44:12 +0000
commitf8b9cae814771de46eb66cc93da3952fd57f6941 (patch)
tree7e85700c0d56cb96bb228a8f3a772fc366f1d7d5 /sys/nfs/nfs_vnops.c
parentd5099c55a37a6e9ed2c726cebdf85453b3a0448e (diff)
correct indentation
no functional change, found by smatch warnings ok miod@ bluhm@
Diffstat (limited to 'sys/nfs/nfs_vnops.c')
-rw-r--r--sys/nfs/nfs_vnops.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c
index bda27cd745e..61847abb248 100644
--- a/sys/nfs/nfs_vnops.c
+++ b/sys/nfs/nfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_vnops.c,v 1.194 2024/03/25 17:57:07 guenther Exp $ */
+/* $OpenBSD: nfs_vnops.c,v 1.195 2024/04/13 23:44:11 jsg Exp $ */
/* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */
/*
@@ -336,9 +336,9 @@ nfs_access(void *v)
* Check access cache first. If a request has been made for this uid
* shortly before, use the cached result.
*/
- cachevalid = (np->n_accstamp != -1 &&
- (gettime() - np->n_accstamp) < nfs_attrtimeo(np) &&
- np->n_accuid == ap->a_cred->cr_uid);
+ cachevalid = (np->n_accstamp != -1 &&
+ (gettime() - np->n_accstamp) < nfs_attrtimeo(np) &&
+ np->n_accuid == ap->a_cred->cr_uid);
if (cachevalid) {
if (!np->n_accerror) {
@@ -408,7 +408,7 @@ nfs_access(void *v)
* If we got the same result as for a previous, different request, OR
* it in. Don't update the timestamp in that case.
*/
- if (!error || error == EACCES) {
+ if (!error || error == EACCES) {
if (cachevalid && np->n_accstamp != -1 &&
error == np->n_accerror) {
if (!error)