From: Joshua Colp Date: Wed, 17 May 2006 22:51:28 +0000 (+0000) Subject: Remove needless check for autofill (issue #7180 reported by Marquis) X-Git-Tag: 1.4.0-beta1~1348 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4edfd20a7a70db522599216a0e2b6283b34693c5;p=thirdparty%2Fasterisk.git Remove needless check for autofill (issue #7180 reported by Marquis) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27975 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index c19b187271..1ae2b0e4d0 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1895,11 +1895,10 @@ static int is_our_turn(struct queue_ent *qe) int res; if (!qe->parent->autofill) { - /* Atomically read the parent head -- does not need a lock */ ch = qe->parent->head; /* If we are now at the top of the head, break out */ - if ((ch == qe) || (qe->parent->autofill)) { + if (ch == qe) { if (option_debug) ast_log(LOG_DEBUG, "It's our turn (%s).\n", qe->chan->name); res = 1;