commit 341928c807b1d16383710b8b2728ed963746bb9d Author: Andrea Shepard andrea@torproject.org Date: Mon Oct 8 19:53:05 2012 -0700
Simplify channel_find_by_remote_digest() --- src/or/channel.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/or/channel.c b/src/or/channel.c index 9b814bb..c5bf60d 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;
tor-commits@lists.torproject.org