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:
parent
af69f68359
commit
e3ad88c784
1 changed files with 0 additions and 2 deletions
|
@ -869,10 +869,8 @@ static void iax2_frame_free(struct iax_frame *fr)
|
||||||
|
|
||||||
static int iax2_queue_frame(int callno, struct ast_frame *f)
|
static int iax2_queue_frame(int callno, struct ast_frame *f)
|
||||||
{
|
{
|
||||||
int pass =0;
|
|
||||||
/* Assumes lock for callno is already held... */
|
/* Assumes lock for callno is already held... */
|
||||||
for (;;) {
|
for (;;) {
|
||||||
pass++;
|
|
||||||
if (iaxs[callno] && iaxs[callno]->owner) {
|
if (iaxs[callno] && iaxs[callno]->owner) {
|
||||||
if (ast_mutex_trylock(&iaxs[callno]->owner->lock)) {
|
if (ast_mutex_trylock(&iaxs[callno]->owner->lock)) {
|
||||||
/* Avoid deadlock by pausing and trying again */
|
/* Avoid deadlock by pausing and trying again */
|
||||||
|
|
Loading…
Reference in a new issue