CLEANUP: haterm: remove unreachable labels hstream_add_data()

This function does not return a status. It nevers fails.
Remove some useled dead code.
This commit is contained in:
Frederic Lecaille 2026-02-23 10:13:25 +01:00
parent 5aa30847ae
commit a5a053e612

View file

@ -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