aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/channel.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/or/channel.c b/src/or/channel.c
index f987caed5..2ca9a1323 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;
}
/**