summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c
index e1595bddf..d49344ad2 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -931,7 +931,7 @@ static struct ast_channel *channel_find_locked(const struct ast_channel *prev,
struct ast_channel *c;
const struct ast_channel *_prev = prev;
- for (retries = 0; retries < 10; retries++, prev = _prev) {
+ for (retries = 0; retries < 10; retries++) {
int done;
AST_RWLIST_RDLOCK(&channels);
AST_RWLIST_TRAVERSE(&channels, c, chan_list) {