From: Frédéric Lécaille Date: Wed, 2 Feb 2022 14:57:22 +0000 (+0100) Subject: MINOR: quic: Useless statement in quic_crypto_data_cpy() X-Git-Tag: v2.6-dev2~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=547aa0e95ec3445c788e09207a225e4dbff294c7;p=thirdparty%2Fhaproxy.git MINOR: quic: Useless statement in quic_crypto_data_cpy() This should fix Coverity CID 375057 in GH #1526 where a useless assignment was detected. --- diff --git a/src/xprt_quic.c b/src/xprt_quic.c index 0793967b62..5aa1893d1b 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -972,7 +972,6 @@ static int quic_crypto_data_cpy(struct quic_enc_level *qel, /* Increment the total size of this CRYPTO buffers by . */ qel->tx.crypto.sz += to_copy; (*qcb)->sz += to_copy; - pos += to_copy; len -= to_copy; data += to_copy; }