vfs: fold poll_no_poll into vop_nopoll
The logic was almost completely present in vop_stdpoll anyway.
This commit is contained in:
parent
b1f910e02c
commit
2e4f8220e8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363707
@ -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));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user