From: Christian Grothoff Date: Thu, 8 Dec 2011 12:51:14 +0000 (+0000) Subject: -eliminate special case, no justification for why it is there X-Git-Tag: initial-import-from-subversion-38251~15692 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fdae0c44ece2898cb824aee297c02f8da0a2d8ea;p=oweals%2Fgnunet.git -eliminate special case, no justification for why it is there --- diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c index 06b459beb..5bf320ac4 100644 --- a/src/nse/gnunet-service-nse.c +++ b/src/nse/gnunet-service-nse.c @@ -434,9 +434,7 @@ get_delay_randomization (uint32_t matching_bits) uint32_t i; double d; - if (matching_bits == 0) - return GNUNET_TIME_UNIT_ZERO; - d = get_matching_bits_delay (matching_bits - 1); + d = get_matching_bits_delay (matching_bits); i = (uint32_t) (d / (double) (hop_count_max + 1)); #if DEBUG_NSE GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,