From: Christian Grothoff Date: Tue, 13 Sep 2011 09:56:39 +0000 (+0000) Subject: simplify X-Git-Tag: initial-import-from-subversion-38251~17164 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bf51e53605502d2fb868655451b5d169994a62d5;p=oweals%2Fgnunet.git simplify --- diff --git a/src/dht/gnunet-service-dht.c b/src/dht/gnunet-service-dht.c index 42e0c20b8..055fbe1fd 100644 --- a/src/dht/gnunet-service-dht.c +++ b/src/dht/gnunet-service-dht.c @@ -3083,10 +3083,9 @@ get_forward_count (unsigned int hop_count, size_t target_replication) { if (hop_count == 0) return kademlia_replication; - else if (hop_count < max_hops) + if (hop_count < max_hops) return 1; - else - return 0; + return 0; } /* FIXME: the smaller we think the network is the more lenient we should be for