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

index c3efa1b1c510bfd993f49d90843a15db73f541a2..bd96c43850fe09f86bd46819a0805f5c6d56d906 100644 (file)
@@ -617,8 +617,6 @@ static Host *HostGetUsedHost(void) {
             idx = 0;
 
         HostHashRow *hb = &host_hash[idx];
-        if (hb == NULL)
-            continue;
 
         if (HRLOCK_TRYLOCK(hb) != 0)
             continue;