summaryrefslogtreecommitdiff
path: root/threadproc
diff options
context:
space:
mode:
authorjwoolley <jwoolley@13f79535-47bb-0310-9956-ffa450edef68>2001-02-19 20:55:36 +0000
committerjwoolley <jwoolley@13f79535-47bb-0310-9956-ffa450edef68>2001-02-19 20:55:36 +0000
commitb9e9f8a1befdfd4dd3cb8043699cf7a70bef9bdf (patch)
tree9cc578abcee7d8284ee6deba5efd4bc9ecc66332 /threadproc
parentb3d983bfb720f5d4f1f161d4a63b7eaf581cdaf9 (diff)
downloadlibapr-b9e9f8a1befdfd4dd3cb8043699cf7a70bef9bdf.tar.gz
Remove a useless test.
This file still doesn't compile with Cygwin's pthread.h, but that seems to be Cygwin's fault. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61261 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc')
-rw-r--r--threadproc/unix/threadpriv.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/threadproc/unix/threadpriv.c b/threadproc/unix/threadpriv.c
index e5f520afa..1799b34f1 100644
--- a/threadproc/unix/threadpriv.c
+++ b/threadproc/unix/threadpriv.c
@@ -62,7 +62,6 @@
apr_status_t apr_threadkey_private_create(apr_threadkey_t **key,
void (*dest)(void *), apr_pool_t *cont)
{
- apr_status_t stat;
(*key) = (apr_threadkey_t *)apr_pcalloc(cont, sizeof(apr_threadkey_t));
if ((*key) == NULL) {
@@ -71,10 +70,8 @@ apr_status_t apr_threadkey_private_create(apr_threadkey_t **key,
(*key)->cntxt = cont;
- if ((stat = pthread_key_create(&(*key)->key, dest)) == 0) {
- return stat;
- }
- return stat;
+ return pthread_key_create(&(*key)->key, dest);
+
}
apr_status_t apr_threadkey_private_get(void **new, apr_threadkey_t *key)