summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_mutex.c
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2005-12-12 07:14:57 +0000
committerdavidxu <davidxu@FreeBSD.org>2005-12-12 07:14:57 +0000
commit7bdde275182bcbf09f2ca3fd28fa51df5fb9f504 (patch)
treeecfa1c2326d3f7243b39fc4171373d96973b0122 /lib/libthr/thread/thr_mutex.c
parentcc22e5c9bead00e367108238f2cf432e199c1678 (diff)
downloadFreeBSD-src-7bdde275182bcbf09f2ca3fd28fa51df5fb9f504.zip
FreeBSD-src-7bdde275182bcbf09f2ca3fd28fa51df5fb9f504.tar.gz
Remove unused _get_curthread() call.
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 e26f53b..9dbb01d 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);
OpenPOWER on IntegriCloud