From: David Schweikert Date: Tue, 23 Apr 2013 19:59:32 +0000 (+0200) Subject: Coverity: remove pointless expression X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0e09ce6fe7c099175480f23ee2fd977933f92b4;p=fping.git Coverity: remove pointless expression --- diff --git a/src/fping.c b/src/fping.c index dd43500..ad64664 100644 --- a/src/fping.c +++ b/src/fping.c @@ -1143,7 +1143,7 @@ void main_loop() ev_enqueue(h); } /* Count mode: schedule timeout after last ping */ - else if(count_flag && count_flag && h->num_sent >= count) { + else if(count_flag && h->num_sent >= count) { h->ev_type = EV_TYPE_TIMEOUT; h->ev_time.tv_sec = last_send_time.tv_sec; h->ev_time.tv_usec = last_send_time.tv_usec;