diff options
author | davidxu <davidxu@FreeBSD.org> | 2011-01-06 08:13:30 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2011-01-06 08:13:30 +0000 |
commit | bbfe229093d6e05027627a73fb0b1eaf573457c3 (patch) | |
tree | 0363981991ceaa1e255d1691d39733baf3eabd72 /lib/libthr/thread | |
parent | 906db277079898da10beb167e263916433c3d37a (diff) | |
download | FreeBSD-src-bbfe229093d6e05027627a73fb0b1eaf573457c3.zip FreeBSD-src-bbfe229093d6e05027627a73fb0b1eaf573457c3.tar.gz |
Return 0 instead of garbage value.
Found by: clang static analyzer
Diffstat (limited to 'lib/libthr/thread')
-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 d583a20..7573f28 100644 --- a/lib/libthr/thread/thr_mutex.c +++ b/lib/libthr/thread/thr_mutex.c @@ -492,11 +492,10 @@ int _mutex_cv_attach(struct pthread_mutex *m, int count) { struct pthread *curthread = _get_curthread(); - int error; ENQUEUE_MUTEX(curthread, m); m->m_count = count; - return (error); + return (0); } int |