Return 0 instead of garbage value.
Found by: clang static analyzer
This commit is contained in:
parent
f264409aea
commit
ebc8e8fd7f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217047
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user