From 633e6cf09e4eb9b7e264cbb4f787d43838ab18a5 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 11 Nov 2021 08:17:44 +0100 Subject: [PATCH] flow/recycler: minor code cleanups --- src/flow-manager.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/flow-manager.c b/src/flow-manager.c index e4b41c5c7d..fb10375e41 100644 --- a/src/flow-manager.c +++ b/src/flow-manager.c @@ -1050,13 +1050,11 @@ static TmEcode FlowRecyclerThreadDeinit(ThreadVars *t, void *data) */ static TmEcode FlowRecycler(ThreadVars *th_v, void *thread_data) { - struct timeval ts; - uint64_t recycled_cnt = 0; FlowRecyclerThreadData *ftd = (FlowRecyclerThreadData *)thread_data; BUG_ON(ftd == NULL); - + uint64_t recycled_cnt = 0; + struct timeval ts; memset(&ts, 0, sizeof(ts)); - uint32_t fr_passes = 0; while (1) { @@ -1065,7 +1063,6 @@ static TmEcode FlowRecycler(ThreadVars *th_v, void *thread_data) TmThreadTestThreadUnPaused(th_v); TmThreadsUnsetFlag(th_v, THV_PAUSED); } - fr_passes++; SC_ATOMIC_ADD(flowrec_busy,1); FlowQueuePrivate list = FlowQueueExtractPrivate(&flow_recycle_q);