]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ngtcp2: remove dead code
authorDaniel Stenberg <daniel@haxx.se>
Tue, 8 Aug 2023 09:36:21 +0000 (11:36 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 8 Aug 2023 10:29:48 +0000 (12:29 +0200)
'result' is always zero (CURLE_OK) at this point

Detected by Coverity

Closes #11622

lib/vquic/curl_ngtcp2.c

index f07cd8fbc8eaad76e6ab949388642b0f0a23de38..f9f2b8b25ee798ba0e6556e97a447526d8e6fcbd 100644 (file)
@@ -1168,7 +1168,7 @@ static int cb_h3_recv_data(nghttp3_conn *conn, int64_t stream3_id,
   }
   CURL_TRC_CF(data, cf, "[%" PRId64 "] DATA len=%zu", stream->id, buflen);
   h3_drain_stream(cf, data);
-  return result? -1 : 0;
+  return 0;
 }
 
 static int cb_h3_deferred_consume(nghttp3_conn *conn, int64_t stream3_id,