From: Daniel Stenberg Date: Sun, 22 Dec 2024 22:55:22 +0000 (+0100) Subject: http2: fix value stored to 'result' is never read X-Git-Tag: curl-8_12_0~287 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ebcf3d20d77591a38c083e2b0b7b543eae1aa851;p=thirdparty%2Fcurl.git http2: fix value stored to 'result' is never read Detected by clang-tidy Closes #15806 --- diff --git a/lib/http2.c b/lib/http2.c index dbe6f1aaae..b9ca47b632 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -2496,9 +2496,7 @@ static CURLcode cf_h2_connect(struct Curl_cfilter *cf, /* Send out our SETTINGS and ACKs and such. If that blocks, we * have it buffered and can count this filter as being connected */ result = h2_progress_egress(cf, data); - if(result == CURLE_AGAIN) - result = CURLE_OK; - else if(result) + if(result && (result != CURLE_AGAIN)) goto out; *done = TRUE;