From 9bca45dba81d77de06757ce13fc9193e09e010b5 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 8 Aug 2023 11:36:21 +0200 Subject: [PATCH] ngtcp2: remove dead code 'result' is always zero (CURLE_OK) at this point Detected by Coverity Closes #11622 --- lib/vquic/curl_ngtcp2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vquic/curl_ngtcp2.c b/lib/vquic/curl_ngtcp2.c index f07cd8fbc8..f9f2b8b25e 100644 --- a/lib/vquic/curl_ngtcp2.c +++ b/lib/vquic/curl_ngtcp2.c @@ -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,