about summary refs log tree commit diff
path: root/nptl/cleanup_defer.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/cleanup_defer.c')
-rw-r--r--nptl/cleanup_defer.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/nptl/cleanup_defer.c b/nptl/cleanup_defer.c
index b72553bdc0..5d6ed0360b 100644
--- a/nptl/cleanup_defer.c
+++ b/nptl/cleanup_defer.c
@@ -33,9 +33,6 @@ _pthread_cleanup_push_defer (buffer, routine, arg)
   buffer->__arg = arg;
   buffer->__prev = THREAD_GETMEM (self, cleanup);
 
-  if (buffer->__prev != NULL && FRAME_LEFT (buffer, buffer->__prev))
-    buffer->__prev = NULL;
-
   int cancelhandling = THREAD_GETMEM (self, cancelhandling);
 
   /* Disable asynchronous cancellation for now.  */