diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-09-08 09:29:14 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-09-08 09:29:14 +0000 |
commit | e83ab8835688c9beed101aadd2f690b8622387ca (patch) | |
tree | c33e68bda4817da09f3b64d186148383a88f3e42 /lib/libthr | |
parent | 40cda51553df6f8224eba40ac32f1be90ec6e6b8 (diff) | |
download | FreeBSD-src-e83ab8835688c9beed101aadd2f690b8622387ca.zip FreeBSD-src-e83ab8835688c9beed101aadd2f690b8622387ca.tar.gz |
Use return value of _thr_umutex_lock instead of using zero.
Diffstat (limited to 'lib/libthr')
-rw-r--r-- | lib/libthr/thread/thr_mutex.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c index af8d715..6861c9f 100644 --- a/lib/libthr/thread/thr_mutex.c +++ b/lib/libthr/thread/thr_mutex.c @@ -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)) { |