Small style cleanup.
Change-Id: Ib45a4a2296232968296f9bd7cc3592ba46fd412d
This commit is contained in:
parent
611b903ca7
commit
9e79af3b61
2 changed files with 2 additions and 2 deletions
|
@ -154,7 +154,7 @@ int __pthread_cond_timedwait_relative(pthread_cond_t* cond, pthread_mutex_t* mut
|
|||
int status = __futex_wait_ex(&cond->value, COND_IS_SHARED(cond), old_value, reltime);
|
||||
pthread_mutex_lock(mutex);
|
||||
|
||||
if (status == (-ETIMEDOUT)) {
|
||||
if (status == -ETIMEDOUT) {
|
||||
return ETIMEDOUT;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
@ -783,7 +783,7 @@ int pthread_mutex_lock_timeout_np_impl(pthread_mutex_t *mutex, unsigned msecs)
|
|||
* thread.
|
||||
*/
|
||||
if (MUTEX_STATE_BITS_IS_LOCKED_CONTENDED(mvalue)) {
|
||||
if (__futex_wait_ex(&mutex->value, shared, mvalue, &ts) == (-ETIMEDOUT)) {
|
||||
if (__futex_wait_ex(&mutex->value, shared, mvalue, &ts) == -ETIMEDOUT) {
|
||||
return EBUSY;
|
||||
}
|
||||
mvalue = mutex->value;
|
||||
|
|
Loading…
Reference in a new issue