about summary refs log tree commit diff
path: root/nptl/pthread_exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_exit.c')
-rw-r--r--nptl/pthread_exit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/nptl/pthread_exit.c b/nptl/pthread_exit.c
index dc2635f827..600ab036d9 100644
--- a/nptl/pthread_exit.c
+++ b/nptl/pthread_exit.c
@@ -31,9 +31,7 @@ __pthread_exit (void *value)
                     " must be installed for pthread_exit to work\n");
   }
 
-  THREAD_SETMEM (THREAD_SELF, result, value);
-
-  __do_cancel ();
+  __do_cancel (value);
 }
 libc_hidden_def (__pthread_exit)
 weak_alias (__pthread_exit, pthread_exit)