Simplify channel_next_with_digest() in channel.c

This commit is contained in:
Andrea Shepard 2012-10-08 20:08:18 -07:00
parent e877d02fdd
commit 123a08e4a3
No known key found for this signature in database
GPG Key ID: 80BF498218A1E61B

View File

@ -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;
}
/**