1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

freertos-service: remove cruft

This can't be reached currently, so remove it and simplify the setting of c
to the exact equivalent.
This commit is contained in:
Andy Green 2021-11-09 08:58:01 +00:00
parent 591d42ff67
commit 8ddcb16ef1

View file

@ -191,15 +191,7 @@ again:
a = 1;
m = lws_service_flag_pending(context, tsi);
if (m)
c = -1; /* unknown limit */
else
if (n < 0) {
if (LWS_ERRNO != LWS_EINTR)
return -1;
return 0;
} else
c = n;
c = m ? -1 : n;
/* any socket with events to service? */
for (n = 0; n < (int)pt->fds_count && c; n++) {