summaryrefslogtreecommitdiff
path: root/lib/tftp.c
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2021-02-07 09:29:59 +0100
committerMarcel Raad <Marcel.Raad@teamviewer.com>2021-02-10 16:47:27 +0100
commit1cd823ed5ab590636fab218741dbf0a61f1d3157 (patch)
treeedfd9c3d8b371f28ab5e990db897bbbd70164928 /lib/tftp.c
parentcc9c4e0f4e2f665b793be021e926401564429a68 (diff)
downloadcurl-1cd823ed5ab590636fab218741dbf0a61f1d3157.tar.gz
lib: remove redundant code
Closes https://github.com/curl/curl/pull/6576
Diffstat (limited to 'lib/tftp.c')
-rw-r--r--lib/tftp.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/tftp.c b/lib/tftp.c
index defc9105e..a85f297a7 100644
--- a/lib/tftp.c
+++ b/lib/tftp.c
@@ -231,12 +231,6 @@ static CURLcode tftp_set_timeouts(struct tftp_state_data *state)
if(state->retry_max < 1)
/* avoid division by zero below */
state->retry_max = 1;
-
- /* Compute the re-start interval to suit the timeout */
- state->retry_time = (int)timeout/state->retry_max;
- if(state->retry_time<1)
- state->retry_time = 1;
-
}
else {
if(timeout_ms > 0)