libthr: Consume error in check_and_init_mutex

MFC after:      2 weeks
This commit is contained in:
ShengYi Hung committed 2026-10-07 12:26:11 +11:00
1 parent 657c089950
commit 192781bf5d
1 file changed
+1 -1
+1 -1
View File
@@ -1136,7 +1136,7 @@ __pthread_mutex_setyieldloops_np(pthread_mutex_t *mutex, int count)
ret = check_and_init_mutex(mutex, &m);
if (ret == 0)
m->m_yieldloops = count;
return (0);
return (ret);
}
int