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:
parent
1905e01fda
commit
8214973f80
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue