summaryrefslogtreecommitdiff
path: root/sysdeps/generic/pt-mutex-unlock.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-28 01:39:41 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-28 01:39:41 +0200
commit3849b385c44d8d8a2332c826e18d31cff7327e45 (patch)
tree7c00561a25e703446598315326a13a3a8b9a01b2 /sysdeps/generic/pt-mutex-unlock.c
parent08ed02b9705b7bce1b8d79da6455d59a31295212 (diff)
Fix coding style
Diffstat (limited to 'sysdeps/generic/pt-mutex-unlock.c')
-rw-r--r--sysdeps/generic/pt-mutex-unlock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/pt-mutex-unlock.c b/sysdeps/generic/pt-mutex-unlock.c
index 08e74ca..e46a913 100644
--- a/sysdeps/generic/pt-mutex-unlock.c
+++ b/sysdeps/generic/pt-mutex-unlock.c
@@ -36,7 +36,7 @@ __pthread_mutex_unlock (pthread_mutex_t *mutex)
__pthread_spin_lock (&mutex->__lock);
- if (!attr || attr->__mutex_type == PTHREAD_MUTEX_NORMAL)
+ if (attr == NULL || attr->__mutex_type == PTHREAD_MUTEX_NORMAL)
{
#if defined(ALWAYS_TRACK_MUTEX_OWNER)
# ifndef NDEBUG
@@ -87,7 +87,7 @@ __pthread_mutex_unlock (pthread_mutex_t *mutex)
#ifndef NDEBUG
# if !defined (ALWAYS_TRACK_MUTEX_OWNER)
- if (attr && attr->__mutex_type != PTHREAD_MUTEX_NORMAL)
+ if (attr != NULL && attr->__mutex_type != PTHREAD_MUTEX_NORMAL)
# endif
{
mutex->__owner = wakeup;