From: Victor Julien Date: Tue, 28 Nov 2023 11:19:59 +0000 (+0100) Subject: detect: minor cleanup X-Git-Tag: suricata-8.0.0-beta1~2016 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee7c1400289bc35699cab9fa3fe52c8b7c70005c;p=thirdparty%2Fsuricata.git detect: minor cleanup MPM_HS does not need a guard. --- diff --git a/src/detect-engine.c b/src/detect-engine.c index c4f630699a..b197369f10 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -2728,10 +2728,7 @@ static int DetectEngineCtxLoadConf(DetectEngineCtx *de_ctx) /* for now, since we still haven't implemented any intelligence into * understanding the patterns and distributing mpm_ctx across sgh */ if (de_ctx->mpm_matcher == MPM_AC || de_ctx->mpm_matcher == MPM_AC_KS || -#ifdef BUILD_HYPERSCAN - de_ctx->mpm_matcher == MPM_HS || -#endif - de_ctx->mpm_matcher == MPM_AC_BS) { + de_ctx->mpm_matcher == MPM_HS || de_ctx->mpm_matcher == MPM_AC_BS) { de_ctx->sgh_mpm_ctx_cnf = ENGINE_SGH_MPM_FACTORY_CONTEXT_SINGLE; } else { de_ctx->sgh_mpm_ctx_cnf = ENGINE_SGH_MPM_FACTORY_CONTEXT_FULL;