From: Shivani Bhardwaj Date: Thu, 15 Feb 2024 04:47:38 +0000 (+0530) Subject: multi-tenant: remove futile mutex lock X-Git-Tag: suricata-8.0.0-beta1~1745 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10436%2Fhead;p=thirdparty%2Fsuricata.git multi-tenant: remove futile mutex lock No shared resource is being changed when the lock is held, it is immediately unlocked. So, remove it. --- diff --git a/src/detect-engine-loader.c b/src/detect-engine-loader.c index 153c056a85..8a02ae148e 100644 --- a/src/detect-engine-loader.c +++ b/src/detect-engine-loader.c @@ -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;