From bf51e53605502d2fb868655451b5d169994a62d5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 13 Sep 2011 09:56:39 +0000 Subject: [PATCH] simplify --- src/dht/gnunet-service-dht.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.25.1