]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: minor cleanup
authorVictor Julien <vjulien@oisf.net>
Tue, 28 Nov 2023 11:19:59 +0000 (12:19 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 1 Dec 2023 13:55:41 +0000 (14:55 +0100)
MPM_HS does not need a guard.

src/detect-engine.c

index c4f630699a704a3d6e7f2cbe7cea97408e77e0c2..b197369f100a93cafdeebfb8469c7db5d5b25212 100644 (file)
@@ -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;