From c7884b9fc794d067672e3195bcb784bd9fe13380 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 23 Feb 2011 13:09:33 -0800 Subject: [PATCH] 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. --- lib/dhcp-client.c | 1 - 1 file changed, 1 deletion(-) 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); } } -- 2.30.2