1
0
Fork 0
forked from nuttx/nuttx-update

net/usrsock/usrsock_poll.c: usrsock_pollsetup() doesn't need logic and with fds->events since line 279 will do the same thing:

fds->revents &= (~(POLLOUT | POLLIN) | info->fds->events);
This commit is contained in:
Xiang Xiao 2019-11-25 11:44:58 -06:00 committed by Gregory Nutt
parent 1905e01fda
commit 8214973f80

View file

@ -263,14 +263,14 @@ static int usrsock_pollsetup(FAR struct socket *psock, FAR struct pollfd *fds)
{
ninfo("socket send ready.\n");
fds->revents |= (POLLOUT & fds->events);
fds->revents |= POLLOUT;
}
if (conn->flags & USRSOCK_EVENT_RECVFROM_AVAIL)
{
ninfo("socket recv avail.\n");
fds->revents |= (POLLIN & fds->events);
fds->revents |= POLLIN;
}
}