mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 03:05:40 +08:00
Network poll: Remove logic conditioned on non-existent HAVE_NET_POLL.
This commit is contained in:
@@ -100,9 +100,6 @@ int psock_poll(FAR struct socket *psock, FAR struct pollfd *fds, bool setup)
|
|||||||
|
|
||||||
int net_poll(int sockfd, struct pollfd *fds, bool setup)
|
int net_poll(int sockfd, struct pollfd *fds, bool setup)
|
||||||
{
|
{
|
||||||
#ifndef HAVE_NET_POLL
|
|
||||||
return -ENOSYS;
|
|
||||||
#else
|
|
||||||
FAR struct socket *psock;
|
FAR struct socket *psock;
|
||||||
|
|
||||||
DEBUGASSERT(fds != NULL);
|
DEBUGASSERT(fds != NULL);
|
||||||
@@ -120,7 +117,6 @@ int net_poll(int sockfd, struct pollfd *fds, bool setup)
|
|||||||
/* Then let psock_poll() do the heavy lifting */
|
/* Then let psock_poll() do the heavy lifting */
|
||||||
|
|
||||||
return psock_poll(psock, fds, setup);
|
return psock_poll(psock, fds, setup);
|
||||||
#endif /* HAVE_NET_POLL */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_NET && !CONFIG_DISABLE_POLL */
|
#endif /* CONFIG_NET && !CONFIG_DISABLE_POLL */
|
||||||
|
|||||||
Reference in New Issue
Block a user