diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-28 02:06:28 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-28 02:06:28 +0200 |
commit | ec6bfe8db3d731428008a8715fcd523a491a934c (patch) | |
tree | 803bd57c01f629cd32eadbd2a18eacbe3b5ad3f1 /sysdeps/mach/hurd/pt-mutex-lock.c | |
parent | 8657c93f0adeefd1b50d54ae30aa0a4ba2d89827 (diff) |
Fix coding style
Diffstat (limited to 'sysdeps/mach/hurd/pt-mutex-lock.c')
-rw-r--r-- | sysdeps/mach/hurd/pt-mutex-lock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/mach/hurd/pt-mutex-lock.c b/sysdeps/mach/hurd/pt-mutex-lock.c index 8ebb4f6..7256ec5 100644 --- a/sysdeps/mach/hurd/pt-mutex-lock.c +++ b/sysdeps/mach/hurd/pt-mutex-lock.c @@ -41,10 +41,10 @@ __pthread_mutex_lock (pthread_mutex_t *mtxp) if (mtx_owned_p (mtxp, self, flags)) { if (__glibc_unlikely (mtxp->__cnt + 1 == 0)) - return (EAGAIN); + return EAGAIN; ++mtxp->__cnt; - return (ret); + return ret; } lll_lock (&mtxp->__lock, flags); @@ -55,7 +55,7 @@ __pthread_mutex_lock (pthread_mutex_t *mtxp) case PT_MTX_ERRORCHECK: self = _pthread_self (); if (mtx_owned_p (mtxp, self, flags)) - return (EDEADLK); + return EDEADLK; lll_lock (&mtxp->__lock, flags); mtx_set_owner (mtxp, self, flags); @@ -73,7 +73,7 @@ __pthread_mutex_lock (pthread_mutex_t *mtxp) break; } - return (ret); + return ret; } strong_alias (__pthread_mutex_lock, _pthread_mutex_lock) |