summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/libpthread/pthread_setspecific.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/dietlibc/libpthread/pthread_setspecific.c')
-rw-r--r--mdk-stage1/dietlibc/libpthread/pthread_setspecific.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mdk-stage1/dietlibc/libpthread/pthread_setspecific.c b/mdk-stage1/dietlibc/libpthread/pthread_setspecific.c
index 78339c20b..b66ce31d0 100644
--- a/mdk-stage1/dietlibc/libpthread/pthread_setspecific.c
+++ b/mdk-stage1/dietlibc/libpthread/pthread_setspecific.c
@@ -15,7 +15,6 @@ int pthread_setspecific(pthread_key_t key, const void *value)
__thread_keys[key].tkd[id]=value;
return 0;
}
- (*__errno_location())=EINVAL;
- return -1;
+ return EINVAL;
}