]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Useless test in quic_update_ack_ranges_list()
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 2 Jun 2021 13:36:12 +0000 (15:36 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000 (15:27 +0200)
At this place, the condition "le_ar->first.key <= ar->first" is true because
<le_ar> is the ack-range just below <ar> ack range.

src/xprt_quic.c

index 7701f85ab0f4f18e02cd31c22183d63076d4d412..c6b9a447f2408f47be463abaee816b1e6d5fb15a 100644 (file)
@@ -2329,7 +2329,7 @@ int quic_update_ack_ranges_list(struct quic_arngs *arngs,
                        eb64_entry(&le->node, struct quic_arng_node, first);
 
                /* Already existing range */
-               if (le_ar->first.key <= ar->first && le_ar->last >= ar->last)
+               if (le_ar->last >= ar->last)
                        return 1;
 
                if (le_ar->last + 1 >= ar->first) {