about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/msync.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/msync.c')
-rw-r--r--sysdeps/mach/hurd/msync.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sysdeps/mach/hurd/msync.c b/sysdeps/mach/hurd/msync.c
index a1244e42e2..115d30ec41 100644
--- a/sysdeps/mach/hurd/msync.c
+++ b/sysdeps/mach/hurd/msync.c
@@ -47,9 +47,6 @@ msync (void *addr, size_t length, int flags)
   kern_return_t err;
   int cancel_oldtype;
 
-  if ((flags & (MS_SYNC | MS_ASYNC)) == (MS_SYNC | MS_ASYNC))
-    return __hurd_fail (EINVAL);
-
   while (cur < target)
     {
       vm_address_t begin = cur;