|
From: <sv...@va...> - 2011-07-03 11:46:18
|
Author: bart
Date: 2011-07-03 12:41:27 +0100 (Sun, 03 Jul 2011)
New Revision: 11849
Log:
drd: Simplify a boolean expression
Modified:
trunk/drd/drd_thread.h
Modified: trunk/drd/drd_thread.h
===================================================================
--- trunk/drd/drd_thread.h 2011-07-03 11:40:49 UTC (rev 11848)
+++ trunk/drd/drd_thread.h 2011-07-03 11:41:27 UTC (rev 11849)
@@ -210,9 +210,9 @@
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. */
|