mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-26 16:18:31 +00:00
- Turn a DIAGNOSTIC check into a KASSERT(9) macro.
This commit is contained in:
parent
349085b952
commit
48e40af8a3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98328
@ -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();
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user