Unverified Commit 123a08e4 authored by Andrea Shepard's avatar Andrea Shepard
Browse files

Simplify channel_next_with_digest() in channel.c

parent e877d02f
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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;
}

/**