ngtcp2: remove dead code

'result' is always zero (CURLE_OK) at this point

Detected by Coverity

Closes #11622
This commit is contained in:
Daniel Stenberg 2023-08-08 11:36:21 +02:00
parent 00a70cca74
commit 9bca45dba8
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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,