Use return value of _thr_umutex_lock instead of using zero.

This commit is contained in:
David Xu 2006-09-08 09:29:14 +00:00
parent 6a146a1989
commit ddaf6689e3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162143

View File

@ -355,8 +355,7 @@ mutex_lock_common(struct pthread *curthread, pthread_mutex_t *mutex,
ret = mutex_self_lock(m, abstime);
} else {
if (abstime == NULL) {
_thr_umutex_lock(&m->m_lock, id);
ret = 0;
ret = _thr_umutex_lock(&m->m_lock, id);
} else if (__predict_false(
abstime->tv_sec < 0 || abstime->tv_nsec < 0 ||
abstime->tv_nsec >= 1000000000)) {