aarch64: Fix lll_futex_timed_wait_bitset return value sign.
authorMarcus Shawcroft <marcus.shawcroft@linaro.org>
Wed, 21 Nov 2012 12:24:11 +0000 (12:24 +0000)
committerMarcus Shawcroft <marcus.shawcroft@linaro.org>
Wed, 21 Nov 2012 12:24:11 +0000 (12:24 +0000)
The implementation of lll_futex_timed_wait_bitset should not be negating
the futex syscall return value on error.

ports/ChangeLog.aarch64
ports/sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h

index 7088c23..2caca32 100644 (file)
@@ -1,3 +1,8 @@
+2012-11-21  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
+
+       * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h
+       (lll_futex_timed_wait_bitset): Remove INTERNAL_SYSCALL_ERROR_P.
+
 2012-11-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
 
        * sysdeps/aarch64/fpu/s_fma.c (weak_alias_x):
index e4f0c94..705cffd 100644 (file)
@@ -96,7 +96,7 @@
                              __lll_private_flag (__op, private),       \
                              (val), (timespec), NULL /* Unused.  */,   \
                              FUTEX_BITSET_MATCH_ANY);                  \
-    INTERNAL_SYSCALL_ERROR_P (__ret, __err) ? -__ret : __ret;          \
+    __ret;                                                             \
   })
 
 #define lll_futex_wake(futexp, nr, private) \