summaryrefslogtreecommitdiff
path: root/src/or/channel.c
diff options
context:
space:
mode:
authorDeepesh Pathak <deepshpathak@gmail.com>2018-04-03 09:17:23 +0530
committerDeepesh Pathak <deepshpathak@gmail.com>2018-04-03 09:17:23 +0530
commit2680a8b5b108ff1532b1aa59849e3156ce76f52b (patch)
treeb55d3d7020b09bcb932784253f590ae37dd7ac70 /src/or/channel.c
parent398bef2592010e71692dd9c3b5b90d3751c48bb2 (diff)
downloadtor-2680a8b5b108ff1532b1aa59849e3156ce76f52b.tar.gz
tor-2680a8b5b108ff1532b1aa59849e3156ce76f52b.zip
ticket(25645): remove unused variable n_possible from channel_get_for_extend()
Diffstat (limited to 'src/or/channel.c')
-rw-r--r--src/or/channel.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/channel.c b/src/or/channel.c
index a9483ee021..af2558e1f8 100644
--- a/src/or/channel.c
+++ b/src/or/channel.c
@@ -2387,7 +2387,7 @@ channel_get_for_extend(const char *rsa_id_digest,
{
channel_t *chan, *best = NULL;
int n_inprogress_goodaddr = 0, n_old = 0;
- int n_noncanonical = 0, n_possible = 0;
+ int n_noncanonical = 0;
tor_assert(msg_out);
tor_assert(launch_out);
@@ -2450,8 +2450,6 @@ channel_get_for_extend(const char *rsa_id_digest,
continue;
}
- ++n_possible;
-
if (!best) {
best = chan; /* If we have no 'best' so far, this one is good enough. */
continue;