Merge pull request #655 from mrdeep1/cov_1

Coverity: Fix CDI 1503967
This commit is contained in:
obgm authored and GitHub committed 2021-04-22 08:59:03 +02:00
commit 4f64a54871
1 file changed
+1 -5
+1 -5
View File
@@ -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) {