diff --git a/src/system/libroot/posix/pthread/pthread.cpp b/src/system/libroot/posix/pthread/pthread.cpp index 6c441e1f21..ef708b9197 100644 --- a/src/system/libroot/posix/pthread/pthread.cpp +++ b/src/system/libroot/posix/pthread/pthread.cpp @@ -181,7 +181,7 @@ pthread_self(void) int pthread_equal(pthread_t t1, pthread_t t2) { - return t1 != NULL && t2 != NULL && t1 == t2; + return t1 == t2; }