about summary refs log tree commit diff
path: root/htl/pt-detach.c
diff options
context:
space:
mode:
Diffstat (limited to 'htl/pt-detach.c')
-rw-r--r--htl/pt-detach.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/htl/pt-detach.c b/htl/pt-detach.c
index 97017ed8f2..cb611f1b8f 100644
--- a/htl/pt-detach.c
+++ b/htl/pt-detach.c
@@ -62,12 +62,6 @@ __pthread_detach (pthread_t thread)
       __pthread_dealloc (pthread);
       break;
 
-    case PTHREAD_TERMINATED:
-      /* Pretend THREAD wasn't there in the first place.  */
-      __pthread_mutex_unlock (&pthread->state_lock);
-      err = ESRCH;
-      break;
-
     default:
       /* Thou shalt not detach non-joinable threads!  */
       __pthread_mutex_unlock (&pthread->state_lock);