Remove an always-true condition: all ints are <= INT_MAX

This commit is contained in:
Nick Mathewson 2016-06-27 13:18:54 -04:00
parent 2197bfcc6a
commit 14169a3d70

View File

@ -3839,8 +3839,7 @@ download_status_schedule_get_delay(download_status_t *dls,
schedule != NULL);
/* If we're using random exponential backoff, we do need min/max delay */
tor_assert(dls->backoff != DL_SCHED_RANDOM_EXPONENTIAL ||
(min_delay >= 0 && max_delay >= min_delay &&
max_delay <= INT_MAX));
(min_delay >= 0 && max_delay >= min_delay));
int delay = INT_MAX;
uint8_t dls_schedule_position = (dls->increment_on