minor cleanup
authorChristian Grothoff <christian@grothoff.org>
Tue, 30 Aug 2011 11:25:55 +0000 (11:25 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 30 Aug 2011 11:25:55 +0000 (11:25 +0000)
src/util/peer.c

index 1491211c5e7f2c2a2fca3c550c44b662d4d11673..39d11883d05ba5f00d9f75e15c4446155e0d832a 100644 (file)
@@ -90,17 +90,13 @@ GNUNET_PEER_search (const struct GNUNET_PeerIdentity *pid)
     return 0;
   off = (long) GNUNET_CONTAINER_multihashmap_get (map, &pid->hashPubKey);
   e = (off == 0) ? NULL : &table[off];
-  if (e != NULL)
-  {
-    GNUNET_assert (e->rc > 0);
-    return e->pid;
-  }
-  else
-  {
+  if (e == NULL)
     return 0;
-  }
+  GNUNET_assert (e->rc > 0);
+  return e->pid;
 }
 
+
 /**
  * Intern an peer identity.  If the identity is already known, its
  * reference counter will be increased by one.