simplify
authorChristian Grothoff <christian@grothoff.org>
Tue, 13 Sep 2011 09:56:39 +0000 (09:56 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 13 Sep 2011 09:56:39 +0000 (09:56 +0000)
src/dht/gnunet-service-dht.c

index 42e0c20b86eb45de636396573ff946dcfee009ef..055fbe1fd362e0dfe56fdb5a54eda655bb5f2a6b 100644 (file)
@@ -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