Author: davidxu
Date: Thu Jan 6 08:13:30 2011
New Revision: 217047
URL: http://svn.freebsd.org/changeset/base/217047
Log:
Return 0 instead of garbage value.
Found by: clang static analyzer
Modified:
head/lib/libthr/thread/thr_mutex.c
Modified: head/lib/libthr/thread/thr_mutex.c
==============================================================================
--- head/lib/libthr/thread/thr_mutex.c Thu Jan 6 07:13:23 2011
(r217046)
+++ head/lib/libthr/thread/thr_mutex.c Thu Jan 6 08:13:30 2011
(r217047)
@@ -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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"