From: Stefan Eissing Date: Mon, 30 Jun 2025 07:24:13 +0000 (+0200) Subject: multi: remove careful bounds check as coverity says it is not needed X-Git-Tag: rc-8_15_0-3~68 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=a29133e909bde28da6bf43060b7eeb245936d8f4;p=thirdparty%2Fcurl.git 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 --- 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; } } }