X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fpthread_mutex_trylock.c;fp=src%2Fthread%2Fpthread_mutex_trylock.c;h=fb2779706e75a9fa7e9e6769021174a30e7f31b5;hp=4a424bc91a4217e869fe29c55f6ddd681eb85e63;hb=7fe58d3511387ab6c57909f6e4baef58acd6bd56;hpb=b3b00d11e87926b553429d341b020a8a070e4ea1 diff --git a/src/thread/pthread_mutex_trylock.c b/src/thread/pthread_mutex_trylock.c index 4a424bc9..fb277970 100644 --- a/src/thread/pthread_mutex_trylock.c +++ b/src/thread/pthread_mutex_trylock.c @@ -30,8 +30,6 @@ int pthread_mutex_trylock(pthread_mutex_t *m) if ((own && !(own & 0x40000000)) || a_cas(&m->_m_lock, old, tid)!=old) return EBUSY; - m->_m_count = 1; - if (m->_m_type < 4) return 0; if (m->_m_type >= 8) {