Source-Changes-HG archive

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

[src/ad-namecache]: src/sys/kern Improve an assertion.



details:   https://anonhg.NetBSD.org/src/rev/c774993c61ba
branches:  ad-namecache
changeset: 850545:c774993c61ba
user:      ad <ad%NetBSD.org@localhost>
date:      Thu Jan 23 21:23:56 2020 +0000

description:
Improve an assertion.

diffstat:

 sys/kern/vfs_lookup.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 94f42ae0e489 -r c774993c61ba sys/kern/vfs_lookup.c
--- a/sys/kern/vfs_lookup.c     Thu Jan 23 19:28:39 2020 +0000
+++ b/sys/kern/vfs_lookup.c     Thu Jan 23 21:23:56 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_lookup.c,v 1.212.4.6 2020/01/23 12:21:01 ad Exp $  */
+/*     $NetBSD: vfs_lookup.c,v 1.212.4.7 2020/01/23 21:23:56 ad Exp $  */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.212.4.6 2020/01/23 12:21:01 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.212.4.7 2020/01/23 21:23:56 ad Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_magiclinks.h"
@@ -1390,7 +1390,7 @@
                rw_exit(plock);
        }
 
-       KASSERT(foundobj == NULL || error == 0);
+       KASSERT(error == 0 ? foundobj != NULL : foundobj == NULL);
        *foundobj_ret = foundobj;
        return error;
 }



Home | Main Index | Thread Index | Old Index