aboutsummaryrefslogtreecommitdiffstats
path: root/libc/bionic/pthread_cond.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/bionic/pthread_cond.cpp')
-rw-r--r--libc/bionic/pthread_cond.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/bionic/pthread_cond.cpp b/libc/bionic/pthread_cond.cpp
index 7c229b5ec..4583cef9d 100644
--- a/libc/bionic/pthread_cond.cpp
+++ b/libc/bionic/pthread_cond.cpp
@@ -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;