]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Remove a useless variable in quic_update_ack_ranges_list()
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 2 Jun 2021 15:38:13 +0000 (17:38 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000 (15:27 +0200)
This very minor modification is there to ease the readibilyt of this function.

src/xprt_quic.c

index c6b9a447f2408f47be463abaee816b1e6d5fb15a..847f4d30da6a529ebd727080770542d9008df0d5 100644 (file)
@@ -2348,15 +2348,13 @@ int quic_update_ack_ranges_list(struct quic_arngs *arngs,
         * which follow it.
         */
        if (new) {
-               uint64_t new_node_last;
                struct eb64_node *next;
                struct quic_arng_node *next_node;
 
-               new_node_last = new_node->last;
                while ((next = eb64_next(new))) {
                        next_node =
                                eb64_entry(&next->node, struct quic_arng_node, first);
-                       if (new_node_last + 1 < next_node->first.key)
+                       if (new_node->last + 1 < next_node->first.key)
                                break;
 
                        if (next_node->last > new_node->last)