Module Name:    src
Committed By:   riastradh
Date:           Sat May  7 17:47:34 UTC 2016

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

Log Message:
KASSERT(A); KASSERT(B) instead of KASSERT(A && B).


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/kern/vfs_wapbl.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_wapbl.c
diff -u src/sys/kern/vfs_wapbl.c:1.69 src/sys/kern/vfs_wapbl.c:1.70
--- src/sys/kern/vfs_wapbl.c:1.69	Sat May  7 17:12:22 2016
+++ src/sys/kern/vfs_wapbl.c	Sat May  7 17:47:34 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_wapbl.c,v 1.69 2016/05/07 17:12:22 riastradh Exp $	*/
+/*	$NetBSD: vfs_wapbl.c,v 1.70 2016/05/07 17:47:34 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2003, 2008, 2009 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 #define WAPBL_INTERNAL
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.69 2016/05/07 17:12:22 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.70 2016/05/07 17:47:34 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/bitops.h>
@@ -1505,8 +1505,8 @@ wapbl_flush(struct wapbl *wl, int waitfo
 		goto out;
 
 	off = wl->wl_head;
-	KASSERT((off == 0) || ((off >= wl->wl_circ_off) && 
-	                      (off < wl->wl_circ_off + wl->wl_circ_size)));
+	KASSERT((off == 0) || (off >= wl->wl_circ_off));
+	KASSERT((off == 0) || (off < wl->wl_circ_off + wl->wl_circ_size));
 	error = wapbl_write_blocks(wl, &off);
 	if (error)
 		goto out;

Reply via email to