Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/dwc2/dist dwc2: KASSERT(A && B) -> KASSERT(...



details:   https://anonhg.NetBSD.org/src/rev/7dc12eacc456
branches:  trunk
changeset: 374193:7dc12eacc456
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Apr 09 12:31:10 2023 +0000

description:
dwc2: KASSERT(A && B) -> KASSERT(A); KASSERT(B)

diffstat:

 sys/external/bsd/dwc2/dist/dwc2_hcdddma.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r a8819edbecfc -r 7dc12eacc456 sys/external/bsd/dwc2/dist/dwc2_hcdddma.c
--- a/sys/external/bsd/dwc2/dist/dwc2_hcdddma.c Sun Apr 09 12:29:26 2023 +0000
+++ b/sys/external/bsd/dwc2/dist/dwc2_hcdddma.c Sun Apr 09 12:31:10 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dwc2_hcdddma.c,v 1.10 2021/12/21 09:51:22 skrll Exp $  */
+/*     $NetBSD: dwc2_hcdddma.c,v 1.11 2023/04/09 12:31:10 riastradh Exp $      */
 
 /*
  * hcd_ddma.c - DesignWare HS OTG Controller descriptor DMA routines
@@ -40,7 +40,7 @@
  * This file contains the Descriptor DMA implementation for Host mode
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2_hcdddma.c,v 1.10 2021/12/21 09:51:22 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2_hcdddma.c,v 1.11 2023/04/09 12:31:10 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -99,7 +99,8 @@ static int dwc2_desc_list_alloc(struct d
 {
        int err;
 
-       KASSERT(!cpu_intr_p() && !cpu_softintr_p());
+       KASSERT(!cpu_intr_p());
+       KASSERT(!cpu_softintr_p());
 
        qh->desc_list = NULL;
        qh->desc_list_sz = sizeof(struct dwc2_hcd_dma_desc) *



Home | Main Index | Thread Index | Old Index