vfs: fold poll_no_poll into vop_nopoll

The logic was almost completely present in vop_stdpoll anyway.
This commit is contained in:
Mateusz Guzik 2020-07-30 15:48:56 +00:00
parent b1f910e02c
commit 2e4f8220e8

View File

@ -616,7 +616,9 @@ vop_nopoll(ap)
} */ *ap;
{
return (poll_no_poll(ap->a_events));
if (ap->a_events & ~POLLSTANDARD)
return (POLLNVAL);
return (ap->a_events & (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM));
}
/*