diff --git a/net/local/local_netpoll.c b/net/local/local_netpoll.c index f24f2bc307b..60974d49e8f 100644 --- a/net/local/local_netpoll.c +++ b/net/local/local_netpoll.c @@ -46,7 +46,6 @@ static int local_event_pollsetup(FAR struct local_conn_s *conn, FAR struct pollfd *fds, bool setup) { - pollevent_t eventset; int i; if (setup) @@ -79,14 +78,11 @@ static int local_event_pollsetup(FAR struct local_conn_s *conn, return -EBUSY; } - eventset = 0; if (conn->lc_state == LOCAL_STATE_LISTENING && dq_peek(&conn->u.server.lc_waiters) != NULL) { - eventset |= POLLIN; + poll_notify(&fds, 1, POLLIN); } - - poll_notify(&fds, 1, eventset); } else {