about summary refs log tree commit diff
path: root/sysdeps/generic/posix_fadvise.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/posix_fadvise.c')
-rw-r--r--sysdeps/generic/posix_fadvise.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sysdeps/generic/posix_fadvise.c b/sysdeps/generic/posix_fadvise.c
index 65e2cc4c2c..92f8bb8974 100644
--- a/sysdeps/generic/posix_fadvise.c
+++ b/sysdeps/generic/posix_fadvise.c
@@ -25,8 +25,7 @@
 int
 posix_fadvise (int fd, __off_t offset, __off_t len, int advise)
 {
-  __set_errno (ENOSYS);
-  return -1;
+  return ENOSYS;
 }
 stub_warning (posix_fadvise)
 #include <stub-tag.h>