Browse Source

syscall: flag ia64 syscall error path as unlikely

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 13 years ago
parent
commit
ba48da4e3c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libc/sysdeps/linux/ia64/bits/syscalls.h

+ 2 - 2
libc/sysdeps/linux/ia64/bits/syscalls.h

@@ -63,8 +63,8 @@
 
 
 #define INLINE_SYSCALL_NCS(name, nr, args...)		\
 #define INLINE_SYSCALL_NCS(name, nr, args...)		\
   ({							\
   ({							\
-    DO_INLINE_SYSCALL_NCS (name, nr, args)	\
+    DO_INLINE_SYSCALL_NCS (name, nr, args)		\
-    if (_r10 == -1)					\
+    if (unlikely (_r10 == -1))				\
       {							\
       {							\
 	__set_errno (_retval);				\
 	__set_errno (_retval);				\
 	_retval = -1;					\
 	_retval = -1;					\