summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2006-09-08 09:29:14 +0000
committerdavidxu <davidxu@FreeBSD.org>2006-09-08 09:29:14 +0000
commite83ab8835688c9beed101aadd2f690b8622387ca (patch)
treec33e68bda4817da09f3b64d186148383a88f3e42
parent40cda51553df6f8224eba40ac32f1be90ec6e6b8 (diff)
downloadFreeBSD-src-e83ab8835688c9beed101aadd2f690b8622387ca.zip
FreeBSD-src-e83ab8835688c9beed101aadd2f690b8622387ca.tar.gz
Use return value of _thr_umutex_lock instead of using zero.
-rw-r--r--lib/libthr/thread/thr_mutex.c3
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)) {
OpenPOWER on IntegriCloud