]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
cleanup junk code in flow qh
authorAnoop Saldanha <poonaatsoc@gmail.com>
Wed, 28 Mar 2012 04:13:05 +0000 (09:43 +0530)
committerVictor Julien <victor@inliniac.net>
Wed, 28 Mar 2012 12:55:22 +0000 (14:55 +0200)
src/tmqh-flow.c

index 81748e44b36045b0235dd9f82f8b48beb3c18751..1382e5b60a1a4cd4c5e116500aa940367f7314e8 100644 (file)
@@ -47,8 +47,6 @@ void *TmqhOutputFlowSetupCtx(char *queue_str);
 void TmqhOutputFlowFreeCtx(void *ctx);
 void TmqhFlowRegisterTests(void);
 
-TmqhFlowCtx *tmqh_flow_outctx = NULL;
-
 void TmqhFlowRegister(void)
 {
     tmqh_table[TMQH_FLOW].name = "flow";
@@ -184,8 +182,6 @@ void *TmqhOutputFlowSetupCtx(char *queue_str)
         tstr = comma ? (comma + 1) : comma;
     } while (tstr != NULL);
 
-    tmqh_flow_outctx = ctx;
-
     SC_ATOMIC_INIT(ctx->round_robin_idx);
 
     SCFree(str);
@@ -204,7 +200,7 @@ void TmqhOutputFlowFreeCtx(void *ctx)
     TmqhFlowCtx *fctx = (TmqhFlowCtx *)ctx;
 
     SCLogInfo("AutoFP - Total flow handler queues - %" PRIu16,
-              tmqh_flow_outctx->size);
+              fctx->size);
     for (i = 0; i < fctx->size; i++) {
         SCLogInfo("AutoFP - Queue %-2"PRIu32 " - pkts: %-12"PRIu64" flows: %-12"PRIu64, i,
                 SC_ATOMIC_GET(fctx->queues[i].total_packets),
@@ -215,8 +211,6 @@ void TmqhOutputFlowFreeCtx(void *ctx)
 
     SCFree(fctx->queues);
 
-    tmqh_flow_outctx = NULL;
-
     return;
 }