]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http2: fix value stored to 'result' is never read
authorDaniel Stenberg <daniel@haxx.se>
Sun, 22 Dec 2024 22:55:22 +0000 (23:55 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 23 Dec 2024 07:27:28 +0000 (08:27 +0100)
Detected by clang-tidy

Closes #15806

lib/http2.c

index dbe6f1aaae68662b793f049e402334681cffaeab..b9ca47b632df4521f1e3c215b4f9a3f6c3b16321 100644 (file)
@@ -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;