]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: haterm: remove unreachable labels hstream_add_data()
authorFrederic Lecaille <flecaille@haproxy.com>
Mon, 23 Feb 2026 09:13:25 +0000 (10:13 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Mon, 23 Feb 2026 09:13:25 +0000 (10:13 +0100)
This function does not return a status. It nevers fails.
Remove some useled dead code.

src/haterm.c

index 9299a9f5cda29f1fffd0da1bdfd7548c1aa69780..210509efdb0ad326645b9ed243cbd596b91290a0 100644 (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