usrsock_server: Reduce unnecessary poll prepare
@@ -971,10 +971,9 @@ static bool usrsock_rpmsg_process_poll(struct usrsock_rpmsg_s *priv,
eventfd_t value;
file_read(priv->eventfp, &value, sizeof(value));
- }
-
prepare = true;
}
+ }
else
{
int j;
@@ -1020,6 +1019,7 @@ static bool usrsock_rpmsg_process_poll(struct usrsock_rpmsg_s *priv,
pfds[i].ptr = NULL;
priv->pfds[j].ptr = NULL;
+ prepare = true;
}
if (events != 0)
