]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Coverity 1038101: remove dead code from host hash timeout code
authorVictor Julien <victor@inliniac.net>
Mon, 16 Sep 2013 17:26:13 +0000 (19:26 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 16 Sep 2013 17:26:13 +0000 (19:26 +0200)
src/host-timeout.c

index e9118af5fa5eaf7e06685f3df69d5831cd988ee3..1d7e0866f02347f5f3c901e13c982d8a85d4ea6b 100644 (file)
@@ -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;