From 341928c807b1d16383710b8b2728ed963746bb9d Mon Sep 17 00:00:00 2001 From: Andrea Shepard Date: Mon, 8 Oct 2012 19:53:05 -0700 Subject: [PATCH] Simplify channel_find_by_remote_digest() --- src/or/channel.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/or/channel.c b/src/or/channel.c index 9b814bb655..c5bf60d065 100644 --- a/src/or/channel.c +++ b/src/or/channel.c @@ -596,14 +596,13 @@ channel_find_by_global_id(uint64_t global_identifier) channel_t * channel_find_by_remote_digest(const char *identity_digest) { - channel_t *rv = NULL, *tmp; + channel_t *rv = NULL; tor_assert(identity_digest); /* Search for it in the identity map */ if (channel_identity_map) { - tmp = digestmap_get(channel_identity_map, identity_digest); - rv = tmp; + rv = digestmap_get(channel_identity_map, identity_digest); } return rv;