]> git.gsnw.org Git - fping.git/commitdiff
Coverity: remove pointless expression
authorDavid Schweikert <david@schweikert.ch>
Tue, 23 Apr 2013 19:59:32 +0000 (21:59 +0200)
committerDavid Schweikert <david@schweikert.ch>
Tue, 23 Apr 2013 19:59:32 +0000 (21:59 +0200)
src/fping.c

index dd43500cffff4b79ca7968065a63938de9cf483f..ad646648b8d3014676306ca55c0426756cbf19f4 100644 (file)
@@ -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;