From 44ee01005e768803cf7f1c948cd243b1ba4d8a1f Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Thu, 22 Apr 2021 07:22:37 +0100 Subject: [PATCH] Coverity: Fix CDI 1503967 --- src/coap_io.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/coap_io.c b/src/coap_io.c index 4b6acfcd..a4be2c45 100644 --- a/src/coap_io.c +++ b/src/coap_io.c @@ -1083,11 +1083,7 @@ coap_io_prepare_io(coap_context_t *ctx, #ifndef WITHOUT_ASYNC /* Check to see if we need to send off any Async requests */ - s_timeout = coap_check_async(ctx, now); - if (s_timeout) { - if (timeout == 0 || s_timeout < timeout) - timeout = s_timeout; - } + timeout = coap_check_async(ctx, now); #endif /* WITHOUT_ASYNC */ LL_FOREACH(ctx->endpoint, ep) {