summaryrefslogtreecommitdiff
path: root/nptl/pthread_getspecific.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_getspecific.c')
-rw-r--r--nptl/pthread_getspecific.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/pthread_getspecific.c b/nptl/pthread_getspecific.c
index 24c472d640..afb4d26ffd 100644
--- a/nptl/pthread_getspecific.c
+++ b/nptl/pthread_getspecific.c
@@ -59,8 +59,8 @@ __pthread_getspecific (key)
{
uintptr_t seq = data->seq;
- if (seq != __pthread_keys[key].seq)
- result = data = NULL;
+ if (__builtin_expect (seq != __pthread_keys[key].seq, 0))
+ result = data->data = NULL;
}
return result;