From: Frederic Lecaille Date: Mon, 23 Feb 2026 09:13:25 +0000 (+0100) Subject: CLEANUP: haterm: remove unreachable labels hstream_add_data() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5a053e612269aeecf577adcd2c5729e7a00d712;p=thirdparty%2Fhaproxy.git CLEANUP: haterm: remove unreachable labels hstream_add_data() This function does not return a status. It nevers fails. Remove some useled dead code. --- diff --git a/src/haterm.c b/src/haterm.c index 9299a9f5c..210509efd 100644 --- a/src/haterm.c +++ b/src/haterm.c @@ -496,12 +496,8 @@ static void hstream_add_data(struct htx *htx, struct hstream *hs) TRACE_STATE("unable to add payload to HTX message", HS_EV_HSTRM_ADD_DATA, hs); hs->to_write -= ret; -leave: TRACE_LEAVE(HS_EV_HSTRM_ADD_DATA, hs); return; -err: - TRACE_DEVEL("leaving on error", HS_EV_HSTRM_ADD_DATA); - goto leave; } /* Build the HTTP response with eventually some BODY data depending on ->to_write