aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2006-01-07 14:03:15 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2006-01-07 14:03:15 +0000
commit3b783acd2aff20e985ce27e6a775682b0694be43 (patch)
treec73ea910d41f2c1c2b7b23969da93289c33a6dd6 /sys
parentd827aa478dba46b27add28e96303dcaa79037c71 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_mutex.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index f06813a3321db..81addbe1a6405 100644
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -883,10 +883,6 @@ mtx_destroy(struct mtx *m)
else {
MPASS((m->mtx_lock & (MTX_RECURSED|MTX_CONTESTED)) == 0);
- /* Perform the non-mtx related part of mtx_unlock_spin(). */
- if (LO_CLASSINDEX(&m->mtx_object) == LOCK_CLASS_SPIN_MUTEX)
- spinlock_exit();
-
/* Tell witness this isn't locked to make it happy. */
WITNESS_UNLOCK(&m->mtx_object, LOP_EXCLUSIVE, __FILE__,
__LINE__);