summaryrefslogtreecommitdiffstats
path: root/sys/netatm
diff options
context:
space:
mode:
authorarr <arr@FreeBSD.org>2002-06-17 06:00:20 +0000
committerarr <arr@FreeBSD.org>2002-06-17 06:00:20 +0000
commita229b7d3a34ea00bddcc7e5ea43b35557f2a03d4 (patch)
treede2856b5932426b5f0d897a62bda95b8bae100c9 /sys/netatm
parent873ec67f047583add6c6a64417363b0424960ca6 (diff)
downloadFreeBSD-src-a229b7d3a34ea00bddcc7e5ea43b35557f2a03d4.zip
FreeBSD-src-a229b7d3a34ea00bddcc7e5ea43b35557f2a03d4.tar.gz
- Turn a DIAGNOSTIC check into a KASSERT(9) macro.
Diffstat (limited to 'sys/netatm')
-rw-r--r--sys/netatm/atm_cm.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/netatm/atm_cm.c b/sys/netatm/atm_cm.c
index 0760dba..d684637 100644
--- a/sys/netatm/atm_cm.c
+++ b/sys/netatm/atm_cm.c
@@ -1460,14 +1460,10 @@ atm_cm_cleared(cvp)
Atm_connection *cop, *cop2;
int s;
-#ifdef DIAGNOSTIC
- if ((cvp->cvc_state == CVCS_FREE) ||
- (cvp->cvc_state >= CVCS_CLEAR))
- panic("atm_cm_cleared");
-#endif
+ KASSERT((cvp->cvc_state != CVCS_FREE) && (cvp->cvc_state < CVCS_CLEAR),
+ ("atm_cm_cleared: state sanity check failed"));
cvp->cvc_state = CVCS_CLEAR;
-
s = splnet();
/*
OpenPOWER on IntegriCloud