summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpj <rpj>2004-02-13 06:20:43 +0000
committerrpj <rpj>2004-02-13 06:20:43 +0000
commit3c54879a28c4cdbef9dbd59246b7de8c0536dabc (patch)
treec87ca07cfae7276d0103ccdef8e626dd682d80ce
parentd4b40d449ebc78ef8711c726d1901fba1f006d6c (diff)
Remove redundant equality logic.
-rw-r--r--ChangeLog4
-rw-r--r--pthread_equal.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7b1e23e..cdcd9d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-02-13 Gustav Hallberg <gustav@virtutech.com>
+
+ * pthread_equal.c: Remove redundant equality logic.
+
2003-12-10 Philippe Di Cristo <philipped@voicebox.com>
* sem_timedwait.c (sem_timedwait): Fix timeout calculations.
diff --git a/pthread_equal.c b/pthread_equal.c
index 945c2b5..ce9372e 100644
--- a/pthread_equal.c
+++ b/pthread_equal.c
@@ -69,7 +69,7 @@ pthread_equal (pthread_t t1, pthread_t t2)
* We also accept NULL == NULL - treating NULL as a thread
* for this special case, because there is no error that we can return.
*/
- result = ( ( t1 == t2 ) && ( t1 == NULL || ( t1->thread == t2->thread ) ) );
+ result = ( t1 == t2 );
return (result);