Eliminate useless pass checking

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2004-05-25 00:23:02 +00:00
parent af69f68359
commit e3ad88c784
1 changed files with 0 additions and 2 deletions

View File

@ -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 */