diff options
author | bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2011-07-03 11:41:27 +0000 |
---|---|---|
committer | bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2011-07-03 11:41:27 +0000 |
commit | c6861b7fc3e035c1a1a43215e8fb2a2d70fed8f2 (patch) | |
tree | 6202b439233bb815f833f285e16ea79fcc5837ac /drd | |
parent | 4b3fdb21a4e07b6f1d1b6753203703d7fdd9a785 (diff) |
drd: Simplify a boolean expression
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11849 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'drd')
-rw-r--r-- | drd/drd_thread.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drd/drd_thread.h b/drd/drd_thread.h index 50c2e0db..a110b48e 100644 --- a/drd/drd_thread.h +++ b/drd/drd_thread.h @@ -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. */ |