diff options
author | Andrea Shepard <andrea@torproject.org> | 2012-10-08 20:08:18 -0700 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2012-10-08 20:08:18 -0700 |
commit | 123a08e4a33f6750c3857c5c7ed3515bb196db53 (patch) | |
tree | fc628a2cd3c87be317aefbdf8dbae2f31403cd76 /src/or/channel.c | |
parent | e877d02fdde73934e727346a9da11018681a4c14 (diff) | |
download | tor-123a08e4a33f6750c3857c5c7ed3515bb196db53.tar.gz tor-123a08e4a33f6750c3857c5c7ed3515bb196db53.zip |
Simplify channel_next_with_digest() in channel.c
Diffstat (limited to 'src/or/channel.c')
-rw-r--r-- | 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 f987caed52..2ca9a13238 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; } /** |