summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/uthread/uthread_condattr_destroy.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc_r/uthread/uthread_condattr_destroy.c')
-rw-r--r--lib/libc_r/uthread/uthread_condattr_destroy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_condattr_destroy.c b/lib/libc_r/uthread/uthread_condattr_destroy.c
index b20f183..4179970 100644
--- a/lib/libc_r/uthread/uthread_condattr_destroy.c
+++ b/lib/libc_r/uthread/uthread_condattr_destroy.c
@@ -40,8 +40,7 @@ int pthread_condattr_destroy(pthread_condattr_t *attr)
{
int ret;
if (attr == NULL || *attr == NULL) {
- errno = EINVAL;
- ret = -1;
+ ret = EINVAL;
} else {
free(*attr);
*attr = NULL;
OpenPOWER on IntegriCloud