From ebc8e8fd7f76d1c63052a1e512f3c017bcb6e873 Mon Sep 17 00:00:00 2001 From: David Xu Date: Thu, 6 Jan 2011 08:13:30 +0000 Subject: [PATCH] Return 0 instead of garbage value. Found by: clang static analyzer --- lib/libthr/thread/thr_mutex.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c index d583a207d68..7573f28a092 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