dhcp-client: Remove useless call to timeout() from send_reliably().
authorBen Pfaff <blp@nicira.com>
Wed, 23 Feb 2011 21:09:33 +0000 (13:09 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 23 Feb 2011 23:14:43 +0000 (15:14 -0800)
timeout() has no side effects so calling it without looking at the return
value is pointless.

Coverity #10700.

lib/dhcp-client.c

index e59dc34..a0999bf 100644 (file)
@@ -894,7 +894,6 @@ send_reliably(struct dhclient *cli,
         do_send_msg(cli, &msg);
         cli->delay = MIN(cli->max_timeout, MAX(4, cli->delay * 2));
         cli->retransmit += fuzz(cli->delay, 1);
-        timeout(cli, cli->retransmit);
         dhcp_msg_uninit(&msg);
      }
 }