[tor-commits] [tor/master] Simplify channel_next_with_digest() in channel.c
andrea at torproject.org
andrea at torproject.org
Thu Oct 11 02:05:23 UTC 2012
commit 123a08e4a33f6750c3857c5c7ed3515bb196db53
Author: Andrea Shepard <andrea at torproject.org>
Date: Mon Oct 8 20:08:18 2012 -0700
Simplify channel_next_with_digest() in channel.c
---
src/or/channel.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/src/or/channel.c b/src/or/channel.c
index f987cae..2ca9a13 100644
--- a/src/or/channel.c
+++ b/src/or/channel.c
@@ -622,15 +622,10 @@ channel_find_by_remote_digest(const char *identity_digest)
channel_t *
channel_next_with_digest(channel_t *chan)
{
- channel_t *rv = NULL;
-
tor_assert(chan);
tor_assert(!(chan->is_listener));
- if (chan->u.cell_chan.next_with_same_id)
- rv = chan->u.cell_chan.next_with_same_id;
-
- return rv;
+ return chan->u.cell_chan.next_with_same_id;
}
/**
More information about the tor-commits
mailing list