From: Victor Julien Date: Mon, 16 Sep 2013 17:26:13 +0000 (+0200) Subject: Coverity 1038101: remove dead code from host hash timeout code X-Git-Tag: suricata-2.0beta2~356 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8237bbf18affe8936f6f5b394ee011528720dd98;p=thirdparty%2Fsuricata.git Coverity 1038101: remove dead code from host hash timeout code --- diff --git a/src/host-timeout.c b/src/host-timeout.c index e9118af5fa..1d7e0866f0 100644 --- a/src/host-timeout.c +++ b/src/host-timeout.c @@ -148,8 +148,7 @@ uint32_t HostTimeoutHash(struct timeval *ts) { for (idx = 0; idx < host_config.hash_size; idx++) { HostHashRow *hb = &host_hash[idx]; - if (hb == NULL) - continue; + if (HRLOCK_TRYLOCK(hb) != 0) continue;