aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2021-11-09 08:58:01 +0000
committerAndy Green <andy@warmcat.com>2021-11-09 09:29:00 +0000
commit3ef446f27ca3a7a3f5af5402521a20246f434fd3 (patch)
tree93a1c1860b845b34ae73b7c42d2e2904d1b46e95
parentb45dfcb81e6d3c129969bcc3592f9b7a128b4eb0 (diff)
downloadlibwebsockets-3ef446f27ca3a7a3f5af5402521a20246f434fd3.tar.gz
freertos-service: remove cruft
This can't be reached currently, so remove it and simplify the setting of c to the exact equivalent.
-rw-r--r--lib/plat/freertos/freertos-service.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/plat/freertos/freertos-service.c b/lib/plat/freertos/freertos-service.c
index 41f55fcb..795e3828 100644
--- a/lib/plat/freertos/freertos-service.c
+++ b/lib/plat/freertos/freertos-service.c
@@ -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++) {