From a29133e909bde28da6bf43060b7eeb245936d8f4 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Mon, 30 Jun 2025 09:24:13 +0200 Subject: [PATCH] multi: remove careful bounds check as coverity says it is not needed And we all hope that future code changes will not make it necessary again or this will all be blamed on you, coverity! Closes #17784 --- lib/multi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/multi.c b/lib/multi.c index 2dc63852d3..86afc60016 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -370,8 +370,7 @@ static CURLMcode multi_xfers_add(struct Curl_multi *multi, else { /* make it a 64 multiple, since our bitsets frow by that and * small (easy_multi) grows to at least 64 on first resize. */ - new_size = CURLMIN((((used + min_unused) + 63) / 64) * 64, - max_capacity); + new_size = (((used + min_unused) + 63) / 64) * 64; } } } -- 2.47.2