diff mbox series

[hurd,commited] hurd msync: Drop bogus test

Message ID 20210831174209.4027391-1-samuel.thibault@ens-lyon.org
State Committed, archived
Headers show
Series [hurd,commited] hurd msync: Drop bogus test | expand


Context Check Description
dj/TryBot-apply_patch fail Patch failed to apply to master at the time it was sent
dj/TryBot-32bit fail Patch series failed to apply

Commit Message

Samuel Thibault Aug. 31, 2021, 5:42 p.m. UTC
MS_SYNC is actually 0, so we cannot test that both MS_SYNC and MS_ASYNC
are set.
 sysdeps/mach/hurd/msync.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series


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;