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/fe85698b4fe9
branches: ad-namecache
changeset: 983008:fe85698b4fe9
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 0176c8f7c121 -r fe85698b4fe9 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