summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/posix_fadvise64.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/posix_fadvise64.c')
-rw-r--r--sysdeps/unix/sysv/linux/posix_fadvise64.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/posix_fadvise64.c b/sysdeps/unix/sysv/linux/posix_fadvise64.c
index c0fa6e3391..9787ab4c7c 100644
--- a/sysdeps/unix/sysv/linux/posix_fadvise64.c
+++ b/sysdeps/unix/sysv/linux/posix_fadvise64.c
@@ -40,18 +40,17 @@ libc_hidden_proto (__posix_fadvise64_l64)
int
__posix_fadvise64_l64 (int fd, off64_t offset, off64_t len, int advise)
{
- INTERNAL_SYSCALL_DECL (err);
#ifdef __ASSUME_FADVISE64_64_6ARG
- int ret = INTERNAL_SYSCALL_CALL (fadvise64_64, err, fd, advise,
+ int ret = INTERNAL_SYSCALL_CALL (fadvise64_64, fd, advise,
SYSCALL_LL64 (offset), SYSCALL_LL64 (len));
#else
- int ret = INTERNAL_SYSCALL_CALL (fadvise64_64, err, fd,
+ int ret = INTERNAL_SYSCALL_CALL (fadvise64_64, fd,
__ALIGNMENT_ARG SYSCALL_LL64 (offset),
SYSCALL_LL64 (len), advise);
#endif
- if (!INTERNAL_SYSCALL_ERROR_P (ret, err))
+ if (!INTERNAL_SYSCALL_ERROR_P (ret))
return 0;
- return INTERNAL_SYSCALL_ERRNO (ret, err);
+ return INTERNAL_SYSCALL_ERRNO (ret);
}
/* The type of the len argument was changed from size_t to off_t in