hurd msync: Drop bogus test

MS_SYNC is actually 0, so we cannot test that both MS_SYNC and MS_ASYNC
are set.
This commit is contained in:
Samuel Thibault 2021-08-31 19:41:02 +02:00
parent e2930d8777
commit 60dfb30976

View file

@ -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;