summaryrefslogtreecommitdiff
path: root/mutex.c
diff options
context:
space:
mode:
authorbje <bje>1998-07-12 15:08:46 +0000
committerbje <bje>1998-07-12 15:08:46 +0000
commit14ddcb3dbf40fd94be9377112d24f65ca78d073d (patch)
treece6455fd36e6912dc6759713e5b4f35dfb1c40da /mutex.c
parent98d13090d6fcf0f1646e2c037c83745805455d0a (diff)
* mutex.c (pthread_mutexattr_destory): Simplify flow of control.
Diffstat (limited to 'mutex.c')
-rw-r--r--mutex.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/mutex.c b/mutex.c
index e27c840..0df939b 100644
--- a/mutex.c
+++ b/mutex.c
@@ -97,11 +97,9 @@ pthread_mutexattr_destroy(pthread_mutexattr_t *attr)
{
return EINVAL;
}
- else
- {
- free(attr->ptr);
- return 0;
- }
+
+ free(attr->ptr);
+ return 0;
}
int