]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
drd: Simplify a boolean expression
authorBart Van Assche <bvanassche@acm.org>
Sun, 3 Jul 2011 11:41:27 +0000 (11:41 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 3 Jul 2011 11:41:27 +0000 (11:41 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11849

drd/drd_thread.h

index 50c2e0db8cf489f9f827974f02aef11ba8c36292..a110b48e2eb2f5c9b96e05b68d0f3c350f21a8af 100644 (file)
@@ -210,9 +210,9 @@ static __inline__
 Bool DRD_(IsValidDrdThreadId)(const DrdThreadId tid)
 {
    return (0 <= (int)tid && tid < DRD_N_THREADS && tid != DRD_INVALID_THREADID
-           && ! (DRD_(g_threadinfo)[tid].vg_thread_exists == False
-                 && DRD_(g_threadinfo)[tid].posix_thread_exists == False
-                 && DRD_(g_threadinfo)[tid].detached_posix_thread == False));
+           && (DRD_(g_threadinfo)[tid].vg_thread_exists
+               || DRD_(g_threadinfo)[tid].posix_thread_exists
+               || DRD_(g_threadinfo)[tid].detached_posix_thread));
 }
 
 /** Returns the DRD thread ID of the currently running thread. */