From: Victor Julien Date: Tue, 24 May 2022 10:55:39 +0000 (+0200) Subject: detect/iponly: minor code cleanup X-Git-Tag: suricata-7.0.0-beta1~551 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b65af2867ab21e8255558c849f4e6105b517eb4;p=thirdparty%2Fsuricata.git detect/iponly: minor code cleanup --- diff --git a/src/detect-engine-build.c b/src/detect-engine-build.c index 9ac3e13936..e121d03cb8 100644 --- a/src/detect-engine-build.c +++ b/src/detect-engine-build.c @@ -1688,8 +1688,6 @@ static void DetectEngineAddDecoderEventSig(DetectEngineCtx *de_ctx, Signature *s */ int SigAddressPrepareStage2(DetectEngineCtx *de_ctx) { - uint32_t sigs = 0; - SCLogDebug("building signature grouping structure, stage 2: " "building source address lists..."); @@ -1713,13 +1711,10 @@ int SigAddressPrepareStage2(DetectEngineCtx *de_ctx) if (s->init_data->init_flags & SIG_FLAG_INIT_DEONLY) { DetectEngineAddDecoderEventSig(de_ctx, s); } - - sigs++; } IPOnlyPrepare(de_ctx); IPOnlyPrint(de_ctx, &de_ctx->io_ctx); - return 0; }