From 93d398e24bf365398942f83be36352fb4f51dd85 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 30 Aug 2011 11:25:55 +0000 Subject: [PATCH] minor cleanup --- src/util/peer.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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. -- 2.25.1