From: Christian Grothoff Date: Tue, 30 Aug 2011 11:25:55 +0000 (+0000) Subject: minor cleanup X-Git-Tag: initial-import-from-subversion-38251~17290 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=93d398e24bf365398942f83be36352fb4f51dd85;p=oweals%2Fgnunet.git minor cleanup --- diff --git a/src/util/peer.c b/src/util/peer.c index 1491211c5..39d11883d 100644 --- a/src/util/peer.c +++ b/src/util/peer.c @@ -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.