From 243060a6b75f84e563f2d5683af88c7a9d07529f Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 16 Sep 2013 19:23:33 +0200 Subject: [PATCH] Coverity 1038099: remove dead code from flow hash timeout code --- src/flow-manager.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/flow-manager.c b/src/flow-manager.c index c1906f685e..1f2828f12c 100644 --- a/src/flow-manager.c +++ b/src/flow-manager.c @@ -342,8 +342,7 @@ uint32_t FlowTimeoutHash(struct timeval *ts, uint32_t try_cnt, FlowTimeoutCounte for (idx = 0; idx < flow_config.hash_size; idx++) { FlowBucket *fb = &flow_hash[idx]; - if (fb == NULL) - continue; + if (FBLOCK_TRYLOCK(fb) != 0) continue;