mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-05 16:10:55 +00:00
Remove unused _get_curthread() call.
This commit is contained in:
parent
3e4212785c
commit
e6a9baa280
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153334
|
@ -852,10 +852,8 @@ _mutex_cv_unlock(pthread_mutex_t *m)
|
||||||
int
|
int
|
||||||
_mutex_cv_lock(pthread_mutex_t *m)
|
_mutex_cv_lock(pthread_mutex_t *m)
|
||||||
{
|
{
|
||||||
struct pthread *curthread;
|
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
curthread = _get_curthread();
|
|
||||||
if ((ret = _pthread_mutex_lock(m)) == 0)
|
if ((ret = _pthread_mutex_lock(m)) == 0)
|
||||||
(*m)->m_refcount--;
|
(*m)->m_refcount--;
|
||||||
return (ret);
|
return (ret);
|
||||||
|
|
Loading…
Reference in a new issue