Merged revisions 77785 via svnmerge from
[asterisk/asterisk.git] / main / channel.c
index e1595bd..d49344a 100644 (file)
@@ -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) {