mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Simplify channel_next_with_digest() in channel.c
This commit is contained in:
parent
e877d02fdd
commit
123a08e4a3
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user