summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2011-01-06 08:13:30 +0000
committerDavid Xu <davidxu@FreeBSD.org>2011-01-06 08:13:30 +0000
commitebc8e8fd7f76d1c63052a1e512f3c017bcb6e873 (patch)
tree0363981991ceaa1e255d1691d39733baf3eabd72
parentf264409aea8f53c70bbc2303928a7235f35123a8 (diff)
Notes
-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 d583a207d6839..7573f28a092e8 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