summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sysdeps/unix/sysv/linux
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux')
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/fork.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c b/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c
index 8b4b03677..9b96152d6 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c
@@ -144,9 +144,7 @@ fork (void)
if (pid == 0)
{
- struct pthread *self = THREAD_SELF;
-
- assert (THREAD_GETMEM (self, tid) != ppid);
+ assert (THREAD_GETMEM (THREAD_SELF, tid) != ppid);
if (__fork_generation_pointer != NULL)
*__fork_generation_pointer += 4;