about summary refs log tree commit diff
path: root/sysdeps/htl/pt-getspecific.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/htl/pt-getspecific.c')
-rw-r--r--sysdeps/htl/pt-getspecific.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sysdeps/htl/pt-getspecific.c b/sysdeps/htl/pt-getspecific.c
index af1161206a..a9dfd8a775 100644
--- a/sysdeps/htl/pt-getspecific.c
+++ b/sysdeps/htl/pt-getspecific.c
@@ -25,8 +25,7 @@ __pthread_getspecific (pthread_key_t key)
 {
   struct __pthread *self;
 
-  if (key < 0 || key >= __pthread_key_count
-      || __pthread_key_destructors[key] == PTHREAD_KEY_INVALID)
+  if (key < 0 || key >= __pthread_key_count)
     return NULL;
 
   self = _pthread_self ();