Trying to fix compilation bustage introduced in rev1.160 by converting

a missing lo_class to LO_CLASSINDEX().
This commit is contained in:
Tai-hwa Liang 2006-01-07 02:07:08 +00:00
parent 162138c989
commit 75d6a87fa3

View File

@ -884,7 +884,7 @@ mtx_destroy(struct mtx *m)
MPASS((m->mtx_lock & (MTX_RECURSED|MTX_CONTESTED)) == 0);
/* Perform the non-mtx related part of mtx_unlock_spin(). */
if (m->mtx_object.lo_class == &lock_class_mtx_spin)
if (LO_CLASSINDEX(&m->mtx_object) == LOCK_CLASS_SPIN_MUTEX)
spinlock_exit();
/* Tell witness this isn't locked to make it happy. */