]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_quiche: remove superfluous NULL check
authorDaniel Stenberg <daniel@haxx.se>
Fri, 11 Aug 2023 09:12:45 +0000 (11:12 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 11 Aug 2023 09:43:17 +0000 (11:43 +0200)
'stream' is always non-NULL at this point

Pointed out by Coverity

Closes #11656

lib/vquic/curl_quiche.c

index 9776de8992d98d8c20eca3ec44c848e212dd0353..b43a078c9d9ee1cc041ba403f94cb0b3f7ed51c4 100644 (file)
@@ -908,8 +908,7 @@ out:
     ctx->data_recvd += nread;
   CURL_TRC_CF(data, cf, "[%"PRId64"] cf_recv(total=%"
               CURL_FORMAT_CURL_OFF_T ") -> %zd, %d",
-              stream ? stream->id : (int64_t)0,
-              ctx->data_recvd, nread, *err);
+              stream->id, ctx->data_recvd, nread, *err);
   return nread;
 }