From: Ben Pfaff Date: Wed, 23 Feb 2011 21:09:33 +0000 (-0800) Subject: dhcp-client: Remove useless call to timeout() from send_reliably(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7884b9fc794d067672e3195bcb784bd9fe13380;p=openvswitch dhcp-client: Remove useless call to timeout() from send_reliably(). timeout() has no side effects so calling it without looking at the return value is pointless. Coverity #10700. --- diff --git a/lib/dhcp-client.c b/lib/dhcp-client.c index e59dc34c..a0999bf4 100644 --- a/lib/dhcp-client.c +++ b/lib/dhcp-client.c @@ -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); } }