projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1611cf3
)
dhcp-client: Remove useless call to timeout() from send_reliably().
author
Ben Pfaff
<blp@nicira.com>
Wed, 23 Feb 2011 21:09:33 +0000
(13:09 -0800)
committer
Ben 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
patch
|
blob
|
history
diff --git
a/lib/dhcp-client.c
b/lib/dhcp-client.c
index e59dc34c0ad460157d1e95e9ddffa4354709aefe..a0999bf4772806002b50d849957c265b9ccbea64 100644
(file)
--- 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);
}
}