From 9262b7109edb70a3ffb6496a003b0bf3c40ac92e Mon Sep 17 00:00:00 2001 From: Aurelien DARRAGON Date: Wed, 16 Oct 2024 11:40:00 +0200 Subject: [PATCH] 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() --- src/http_ext.c | 1 - 1 file changed, 1 deletion(-) 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; }