[Asterisk-cvs] asterisk/channels chan_iax2.c,1.142,1.143

markster at lists.digium.com markster at lists.digium.com
Mon May 24 20:09:04 CDT 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv15963/channels

Modified Files:
	chan_iax2.c 
Log Message:
Eliminate useless pass checking


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.142
retrieving revision 1.143
diff -u -d -r1.142 -r1.143
--- chan_iax2.c	8 May 2004 14:38:48 -0000	1.142
+++ chan_iax2.c	25 May 2004 00:23:02 -0000	1.143
@@ -869,10 +869,8 @@
 
 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 */




More information about the svn-commits mailing list