From 8237bbf18affe8936f6f5b394ee011528720dd98 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 16 Sep 2013 19:26:13 +0200 Subject: [PATCH] Coverity 1038101: remove dead code from host hash timeout code --- src/host-timeout.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;