diff options
author | delphij <delphij@FreeBSD.org> | 2006-04-13 03:09:34 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2006-04-13 03:09:34 +0000 |
commit | cf4eda6001a5a1ba6853aeafcfffff149d29a614 (patch) | |
tree | 85f034c174482bb7ac3e017c2115d4e91afabd11 /lib/libpthread/thread/thr_mutex.c | |
parent | 5d98c3bea27622322ffa23d69a5d3f1314e71bfc (diff) | |
download | FreeBSD-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.c | 2 |
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; |