about summary refs log tree commit diff
path: root/nptl/pthread_setschedprio.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_setschedprio.c')
-rw-r--r--nptl/pthread_setschedprio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/pthread_setschedprio.c b/nptl/pthread_setschedprio.c
index 033bfecf62..c58ba94719 100644
--- a/nptl/pthread_setschedprio.c
+++ b/nptl/pthread_setschedprio.c
@@ -48,7 +48,7 @@ pthread_setschedprio (threadid, prio)
     param.sched_priority = pd->tpp->priomax;
 
   /* Try to set the scheduler information.  */
-  if (__builtin_expect (sched_setparam (pd->tid, &param) == -1, 0))
+  if (__glibc_unlikely (sched_setparam (pd->tid, &param) == -1))
     result = errno;
   else
     {