From: Aurelien DARRAGON Date: Wed, 16 Oct 2024 09:40:00 +0000 (+0200) Subject: CLEANUP: http_ext: remove useless BUG_ON() in http_handle_xot_header() X-Git-Tag: v3.1-dev11~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9262b7109edb70a3ffb6496a003b0bf3c40ac92e;p=thirdparty%2Fhaproxy.git CLEANUP: http_ext: remove useless BUG_ON() in http_handle_xot_header() A useless BUG_ON() statement was let in a conditional block that already checks that the condition cannot be met within the block. Remove the useless BUG_ON() --- diff --git a/src/http_ext.c b/src/http_ext.c index 15c6683e94..f74f1af901 100644 --- a/src/http_ext.c +++ b/src/http_ext.c @@ -870,7 +870,6 @@ int http_handle_xot_header(struct stream *s, struct channel *req) } if (s->be->http_ext && s->be->http_ext->xot) { /* backend */ - BUG_ON(!s->be->http_ext); b_xot = s->be->http_ext->xot; }