summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_mutex.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2005-12-15 07:28:19 +0000
committerDavid Xu <davidxu@FreeBSD.org>2005-12-15 07:28:19 +0000
commit21e1f0364d9d14f8e71fa4bdaf16008f6b0a41a8 (patch)
tree752bff1915ba26783a5f4427b7da5f1b292cb97e /lib/libthr/thread/thr_mutex.c
parent33e9390023908c1ed0aaa2d8c92ea93e390b1290 (diff)
Notes
Diffstat (limited to 'lib/libthr/thread/thr_mutex.c')
-rw-r--r--lib/libthr/thread/thr_mutex.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c
index 2126080dff35..3966874224bc 100644
--- a/lib/libthr/thread/thr_mutex.c
+++ b/lib/libthr/thread/thr_mutex.c
@@ -852,10 +852,8 @@ _mutex_cv_unlock(pthread_mutex_t *m)
int
_mutex_cv_lock(pthread_mutex_t *m)
{
- struct pthread *curthread;
int ret;
- curthread = _get_curthread();
if ((ret = _pthread_mutex_lock(m)) == 0)
(*m)->m_refcount--;
return (ret);