summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>2001-09-28 13:09:06 +0000
committerart <art@openbsd.org>2001-09-28 13:09:06 +0000
commit1329432403bdf9d51ea05d37f250e1c04be2d315 (patch)
treef6e1bbc5ace7c1fec1a41c78508902e09347f828
parentRandom cleanup (I don't like Ms in my tree). (diff)
downloadwireguard-openbsd-1329432403bdf9d51ea05d37f250e1c04be2d315.tar.xz
wireguard-openbsd-1329432403bdf9d51ea05d37f250e1c04be2d315.zip
Fix a DIAGNOSTIC check.
-rw-r--r--sys/dev/ic/gem.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ic/gem.c b/sys/dev/ic/gem.c
index 2dadc5ce6a2..caebcf20c31 100644
--- a/sys/dev/ic/gem.c
+++ b/sys/dev/ic/gem.c
@@ -1,3 +1,4 @@
+/* $OpenBSD: gem.c,v 1.8 2001/09/28 13:09:06 art Exp $ */
/* $NetBSD: gem.c,v 1.1 2001/09/16 00:11:43 eeh Exp $ */
/*
@@ -1277,11 +1278,11 @@ gem_tint(sc)
sc->sc_txfree += txs->txs_ndescs;
- if (txs->txs_mbuf == NULL) {
#ifdef DIAGNOSTIC
- panic("gem_txintr: null mbuf");
-#endif
+ if (txs->txs_mbuf == NULL) {
+ panic("gem_txintr: null mbuf");
}
+#endif
bus_dmamap_sync(sc->sc_dmatag, txs->txs_dmamap,
0, txs->txs_dmamap->dm_mapsize,