Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic nvme(4): KASSERT(A && B) -> KASSERT(A); KASSERT(B)
details: https://anonhg.NetBSD.org/src/rev/c6125070fc50
branches: trunk
changeset: 368978:c6125070fc50
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 15 10:15:59 2022 +0000
description:
nvme(4): KASSERT(A && B) -> KASSERT(A); KASSERT(B)
diffstat:
sys/dev/ic/nvme.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r c20a1a282f1a -r c6125070fc50 sys/dev/ic/nvme.c
--- a/sys/dev/ic/nvme.c Mon Aug 15 10:06:00 2022 +0000
+++ b/sys/dev/ic/nvme.c Mon Aug 15 10:15:59 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nvme.c,v 1.62 2022/08/14 12:08:57 jmcneill Exp $ */
+/* $NetBSD: nvme.c,v 1.63 2022/08/15 10:15:59 riastradh Exp $ */
/* $OpenBSD: nvme.c,v 1.49 2016/04/18 05:59:50 dlg Exp $ */
/*
@@ -18,7 +18,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nvme.c,v 1.62 2022/08/14 12:08:57 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nvme.c,v 1.63 2022/08/15 10:15:59 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -2069,8 +2069,10 @@
{
struct nvme_queue *q = xq;
- KASSERT(q && q->q_sc && q->q_sc->sc_softih
- && q->q_sc->sc_softih[q->q_id]);
+ KASSERT(q);
+ KASSERT(q->q_sc);
+ KASSERT(q->q_sc->sc_softih);
+ KASSERT(q->q_sc->sc_softih[q->q_id]);
/*
* MSI/MSI-X are edge triggered, so can handover processing to softint
Home |
Main Index |
Thread Index |
Old Index