Return 0 instead of garbage value.

Found by:	clang static analyzer
This commit is contained in:
David Xu 2011-01-06 08:13:30 +00:00
parent f264409aea
commit ebc8e8fd7f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217047

View File

@ -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