summaryrefslogtreecommitdiff
path: root/libpthread/nptl/pthread_getattr_np.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/nptl/pthread_getattr_np.c')
-rw-r--r--libpthread/nptl/pthread_getattr_np.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libpthread/nptl/pthread_getattr_np.c b/libpthread/nptl/pthread_getattr_np.c
index 969459fe8..8819731ab 100644
--- a/libpthread/nptl/pthread_getattr_np.c
+++ b/libpthread/nptl/pthread_getattr_np.c
@@ -39,10 +39,6 @@ pthread_getattr_np (thread_id, attr)
struct pthread_attr *iattr = (struct pthread_attr *) attr;
int ret = 0;
- /* We have to handle cancellation in the following code since we are
- locking another threads desriptor. */
- pthread_cleanup_push ((void (*) (void *)) lll_unlock_wake_cb, &thread->lock);
-
lll_lock (thread->lock);
/* The thread library is responsible for keeping the values in the
@@ -171,7 +167,5 @@ pthread_getattr_np (thread_id, attr)
lll_unlock (thread->lock);
- pthread_cleanup_pop (0);
-
return ret;
}