Module Name: src
Committed By: riastradh
Date: Thu Feb 23 03:03:58 UTC 2023
Modified Files:
src/sys/kern: subr_pcq.c
Log Message:
pcq(9): KASSERT(A && B) -> KASSERT(A); KASSERT(B)
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/kern/subr_pcq.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/subr_pcq.c
diff -u src/sys/kern/subr_pcq.c:1.18 src/sys/kern/subr_pcq.c:1.19
--- src/sys/kern/subr_pcq.c:1.18 Thu Feb 23 03:03:45 2023
+++ src/sys/kern/subr_pcq.c Thu Feb 23 03:03:58 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_pcq.c,v 1.18 2023/02/23 03:03:45 riastradh Exp $ */
+/* $NetBSD: subr_pcq.c,v 1.19 2023/02/23 03:03:58 riastradh Exp $ */
/*-
* Copyright (c) 2009, 2019 The NetBSD Foundation, Inc.
@@ -118,7 +118,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_pcq.c,v 1.18 2023/02/23 03:03:45 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_pcq.c,v 1.19 2023/02/23 03:03:58 riastradh Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -290,7 +290,8 @@ pcq_create(size_t nitems, km_flag_t kmfl
{
pcq_t *pcq;
- KASSERT(nitems > 0 && nitems <= PCQ_MAXLEN);
+ KASSERT(nitems > 0);
+ KASSERT(nitems <= PCQ_MAXLEN);
pcq = kmem_zalloc(offsetof(pcq_t, pcq_items[nitems]), kmflags);
if (pcq != NULL) {