]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
multi-tenant: remove futile mutex lock 10436/head
authorShivani Bhardwaj <shivani@oisf.net>
Thu, 15 Feb 2024 04:47:38 +0000 (10:17 +0530)
committerVictor Julien <victor@inliniac.net>
Thu, 15 Feb 2024 09:59:03 +0000 (10:59 +0100)
No shared resource is being changed when the lock is held, it is
immediately unlocked. So, remove it.

src/detect-engine-loader.c

index 153c056a85b404e809787ebd938dc1a428dff97c..8a02ae148e2f74f428d93d8686927b82d965639c 100644 (file)
@@ -577,8 +577,6 @@ static TmEcode DetectLoaderThreadInit(ThreadVars *t, const void *initdata, void
     *data = ftd;
 
     DetectLoaderControl *loader = &loaders[ftd->instance];
-    SCMutexLock(&loader->m);
-    SCMutexUnlock(&loader->m);
     loader->tv = t;
 
     return TM_ECODE_OK;