diff options
author | Andrea Shepard <andrea@torproject.org> | 2012-10-08 19:53:05 -0700 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2012-10-08 19:53:05 -0700 |
commit | 341928c807b1d16383710b8b2728ed963746bb9d (patch) | |
tree | 89236ebb08afd58997dc171f7621e678d561d7d1 | |
parent | 965c9de498ab7f6c7ce3dce133bb34456f3d668e (diff) | |
download | tor-341928c807b1d16383710b8b2728ed963746bb9d.tar.gz tor-341928c807b1d16383710b8b2728ed963746bb9d.zip |
Simplify channel_find_by_remote_digest()
-rw-r--r-- | 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 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; |