Module Name:    src
Committed By:   riastradh
Date:           Tue Jun 28 00:13:48 UTC 2022

Modified Files:
        src/sys/kern: vfs_trans.c

Log Message:
fstrans(9): KASSERT(a && b) => KASSERT(a); KASSERT(b)

No functional change intended except better diagnostics in case of
crash.


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/sys/kern/vfs_trans.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/vfs_trans.c
diff -u src/sys/kern/vfs_trans.c:1.63 src/sys/kern/vfs_trans.c:1.64
--- src/sys/kern/vfs_trans.c:1.63	Sun May 17 19:34:07 2020
+++ src/sys/kern/vfs_trans.c	Tue Jun 28 00:13:48 2022
@@ -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 @@ fstrans_get_lwp_info(struct mount *mp, b
 	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);
 	}

Reply via email to