]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - nptl/pthread_setschedprio.c
Use glibc_likely instead __builtin_expect.
[thirdparty/glibc.git] / nptl / pthread_setschedprio.c
index 033bfecf624afd74b4780b49defa9984f4ec8438..c58ba947196b82d56d15d365a47581375b1b4a57 100644 (file)
@@ -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
     {