Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/nfs nfs: Simplify assertion. No functional change inten...



details:   https://anonhg.NetBSD.org/src/rev/84af62fa5cdd
branches:  trunk
changeset: 374194:84af62fa5cdd
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Apr 09 12:33:58 2023 +0000

description:
nfs: Simplify assertion.  No functional change intended.

diffstat:

 sys/nfs/nfs_socket.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 7dc12eacc456 -r 84af62fa5cdd sys/nfs/nfs_socket.c
--- a/sys/nfs/nfs_socket.c      Sun Apr 09 12:31:10 2023 +0000
+++ b/sys/nfs/nfs_socket.c      Sun Apr 09 12:33:58 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_socket.c,v 1.200 2018/09/03 16:29:36 riastradh Exp $       */
+/*     $NetBSD: nfs_socket.c,v 1.201 2023/04/09 12:33:58 riastradh Exp $       */
 
 /*
  * Copyright (c) 1989, 1991, 1993, 1995
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_socket.c,v 1.200 2018/09/03 16:29:36 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_socket.c,v 1.201 2023/04/09 12:33:58 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_nfs.h"
@@ -1229,8 +1229,8 @@ nfs_getreq(struct nfsrv_descript *nd, st
 
        nd->nd_md = md;
        nd->nd_dpos = dpos;
-       KASSERT((nd->nd_cr == NULL && (nfsd->nfsd_flag & NFSD_NEEDAUTH) != 0)
-            || (nd->nd_cr != NULL && (nfsd->nfsd_flag & NFSD_NEEDAUTH) == 0));
+       KASSERT((nd->nd_cr == NULL) ==
+           ((nfsd->nfsd_flag & NFSD_NEEDAUTH) != 0));
        return (0);
 nfsmout:
 errout:



Home | Main Index | Thread Index | Old Index