aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-frv/unistd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-frv/unistd.h')
-rw-r--r--include/asm-frv/unistd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-frv/unistd.h b/include/asm-frv/unistd.h
index 5cf989b448d5..cde376a7a857 100644
--- a/include/asm-frv/unistd.h
+++ b/include/asm-frv/unistd.h
@@ -313,7 +313,7 @@ do { \
unsigned long __sr2 = (res); \
if (__builtin_expect(__sr2 >= (unsigned long)(-4095), 0)) { \
errno = (-__sr2); \
- __sr2 = ULONG_MAX; \
+ __sr2 = ~0UL; \
} \
return (type) __sr2; \
} while (0)