]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect-engine: remove redundant configuration check
authorLukas Sismis <lsismis@oisf.net>
Fri, 25 Apr 2025 12:34:58 +0000 (14:34 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 5 Jun 2025 17:14:30 +0000 (19:14 +0200)
src/detect-engine.c

index a09502f5729db24c09412a328756223d95581518..c89c83053dbe4adf0daba55813b65fff4808c7a3 100644 (file)
@@ -2440,12 +2440,10 @@ retry:
 
 bool DetectEngineMpmCachingEnabled(void)
 {
-    const char *strval = NULL;
-    if (SCConfGet("detect.sgh-mpm-caching", &strval) != 1)
-        return false;
-
     int sgh_mpm_caching = 0;
-    (void)SCConfGetBool("detect.sgh-mpm-caching", &sgh_mpm_caching);
+    if (SCConfGetBool("detect.sgh-mpm-caching", &sgh_mpm_caching) != 1) {
+        return false;
+    }
     return (bool)sgh_mpm_caching;
 }