summaryrefslogtreecommitdiff
path: root/mutex.c
diff options
context:
space:
mode:
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