From 1cd823ed5ab590636fab218741dbf0a61f1d3157 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Sun, 7 Feb 2021 09:29:59 +0100 Subject: lib: remove redundant code Closes https://github.com/curl/curl/pull/6576 --- lib/tftp.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/tftp.c') 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) -- cgit v1.2.1