From a5a053e612269aeecf577adcd2c5729e7a00d712 Mon Sep 17 00:00:00 2001 From: Frederic Lecaille Date: Mon, 23 Feb 2026 10:13:25 +0100 Subject: [PATCH] CLEANUP: haterm: remove unreachable labels hstream_add_data() This function does not return a status. It nevers fails. Remove some useled dead code. --- src/haterm.c | 4 ---- 1 file changed, 4 deletions(-) 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 -- 2.47.3