From d595e0efdf52ff1a1441ac3ee0736ca42d8538a8 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 19 Jul 2017 06:23:56 -0600 Subject: [PATCH] Network poll: Remove logic conditioned on non-existent HAVE_NET_POLL. --- net/socket/net_poll.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/net/socket/net_poll.c b/net/socket/net_poll.c index 4365246f34a..80eaff4583b 100644 --- a/net/socket/net_poll.c +++ b/net/socket/net_poll.c @@ -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) { -#ifndef HAVE_NET_POLL - return -ENOSYS; -#else FAR struct socket *psock; 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 */ return psock_poll(psock, fds, setup); -#endif /* HAVE_NET_POLL */ } #endif /* CONFIG_NET && !CONFIG_DISABLE_POLL */