diff --git a/opal/threads/thread.c b/opal/threads/thread.c index 68c69915d0..d7f3633e79 100644 --- a/opal/threads/thread.c +++ b/opal/threads/thread.c @@ -97,10 +97,7 @@ bool opal_thread_self_compare(opal_thread_t *t) { DWORD thread_id; thread_id = GetCurrentThreadId(); - if (thread_id == t->t_handle) { - return true; - } - return false; + return (thread_id == t->t_handle ? true : false); }