Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern fstrans(9): KASSERT(a && b) => KASSERT(a); KASSERT(b)
details: https://anonhg.NetBSD.org/src/rev/0bb27909f69f
branches: trunk
changeset: 368199:0bb27909f69f
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Jun 28 00:13:48 2022 +0000
description:
fstrans(9): KASSERT(a && b) => KASSERT(a); KASSERT(b)
No functional change intended except better diagnostics in case of
crash.
diffstat:
sys/kern/vfs_trans.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r f4dce201d7ee -r 0bb27909f69f sys/kern/vfs_trans.c
--- a/sys/kern/vfs_trans.c Mon Jun 27 23:36:48 2022 +0000
+++ b/sys/kern/vfs_trans.c Tue Jun 28 00:13:48 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_trans.c,v 1.63 2020/05/17 19:34:07 ad Exp $ */
+/* $NetBSD: vfs_trans.c,v 1.64 2022/06/28 00:13:48 riastradh Exp $ */
/*-
* Copyright (c) 2007, 2020 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_trans.c,v 1.63 2020/05/17 19:34:07 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_trans.c,v 1.64 2022/06/28 00:13:48 riastradh Exp $");
/*
* File system transaction operations.
@@ -462,7 +462,8 @@
if (do_alloc) {
if (__predict_false(fli == NULL))
fli = fstrans_alloc_lwp_info(mp);
- KASSERT(fli != NULL && !fli->fli_mountinfo->fmi_gone);
+ KASSERT(fli != NULL);
+ KASSERT(!fli->fli_mountinfo->fmi_gone);
} else {
KASSERT(fli != NULL);
}
Home |
Main Index |
Thread Index |
Old Index