[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Simplify channel_next_with_digest() in channel.c



commit 123a08e4a33f6750c3857c5c7ed3515bb196db53
Author: Andrea Shepard <andrea@xxxxxxxxxxxxxx>
Date:   Mon Oct 8 20:08:18 2012 -0700

    Simplify channel_next_with_digest() in channel.c
---
 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 f987cae..2ca9a13 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;
 }
 
 /**



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits