vfs: fold poll_no_poll into vop_nopoll

The logic was almost completely present in vop_stdpoll anyway.
This commit is contained in:
mjg 2020-07-30 15:48:56 +00:00
parent 7ad03a1923
commit ebab8d508a

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));
}
/*