Eliminate useless pass checking
authorMark Spencer <markster@digium.com>
Tue, 25 May 2004 00:23:02 +0000 (00:23 +0000)
committerMark Spencer <markster@digium.com>
Tue, 25 May 2004 00:23:02 +0000 (00:23 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3062 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 3c400c7..5905cd0 100755 (executable)
@@ -869,10 +869,8 @@ static void iax2_frame_free(struct iax_frame *fr)
 
 static int iax2_queue_frame(int callno, struct ast_frame *f)
 {
-       int pass =0;
        /* Assumes lock for callno is already held... */
        for (;;) {
-               pass++;
                if (iaxs[callno] && iaxs[callno]->owner) {
                        if (ast_mutex_trylock(&iaxs[callno]->owner->lock)) {
                                /* Avoid deadlock by pausing and trying again */