summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_mutex.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2006-04-13 03:09:34 +0000
committerdelphij <delphij@FreeBSD.org>2006-04-13 03:09:34 +0000
commitcf4eda6001a5a1ba6853aeafcfffff149d29a614 (patch)
tree85f034c174482bb7ac3e017c2115d4e91afabd11 /lib/libpthread/thread/thr_mutex.c
parent5d98c3bea27622322ffa23d69a5d3f1314e71bfc (diff)
downloadFreeBSD-src-cf4eda6001a5a1ba6853aeafcfffff149d29a614.zip
FreeBSD-src-cf4eda6001a5a1ba6853aeafcfffff149d29a614.tar.gz
Unexpand TAILQ_FIRST(foo) == NULL to TAILQ_EMPTY.
Ok'ed by: davidxu
Diffstat (limited to 'lib/libpthread/thread/thr_mutex.c')
-rw-r--r--lib/libpthread/thread/thr_mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_mutex.c b/lib/libpthread/thread/thr_mutex.c
index 39e36ff..6383cd8 100644
--- a/lib/libpthread/thread/thr_mutex.c
+++ b/lib/libpthread/thread/thr_mutex.c
@@ -269,7 +269,7 @@ _pthread_mutex_destroy(pthread_mutex_t *mutex)
* Check to see if this mutex is in use:
*/
if (((*mutex)->m_owner != NULL) ||
- (TAILQ_FIRST(&(*mutex)->m_queue) != NULL) ||
+ (!TAILQ_EMPTY(&(*mutex)->m_queue)) ||
((*mutex)->m_refcount != 0)) {
ret = EBUSY;
OpenPOWER on IntegriCloud