CV-Bowen commented on code in PR #7131: URL: https://github.com/apache/incubator-nuttx/pull/7131#discussion_r978268443
########## net/local/local_netpoll.c: ########## @@ -125,21 +126,7 @@ void local_event_pollnotify(FAR struct local_conn_s *conn, pollevent_t eventset) { #ifdef CONFIG_NET_LOCAL_STREAM - int i; - - for (i = 0; i < LOCAL_NPOLLWAITERS; i++) - { - struct pollfd *fds = conn->lc_event_fds[i]; - if (fds) - { - fds->revents |= (fds->events & eventset); - if (fds->revents != 0) - { - ninfo("Report events: %08" PRIx32 "\n", fds->revents); - nxsem_post(fds->sem); - } - } - } + poll_notify(conn->lc_event_fds, LOCAL_NPOLLWAITERS, eventset); Review Comment: Several places call local_event_pollnotify(), seems leave it here is better. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org