]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: htx: remove the unreachable "append_data" label in htx_reserve_max_data()
authorWilly Tarreau <w@1wt.eu>
Mon, 27 Jul 2026 09:02:52 +0000 (11:02 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Jul 2026 13:30:23 +0000 (15:30 +0200)
commitd159dc6ff2d9594e9ea5201164435df71fe63128
tree041aaac3a0c4867ed47979ad3abf61a05833b1d0
parentf6a8911608aeeda039da617f17c2b76d1fdcea7f
CLEANUP: htx: remove the unreachable "append_data" label in htx_reserve_max_data()

htx_reserve_max_data() carries an "append_data:" label which is never the target
of a goto: the function simply falls through it. It looks like a leftover from
htx_add_data(), which does use such a label. Let's drop it, the code is reached
by fallthrough anyway and an unused label is only confusing.
src/htx.c