From: Richard Mudgett Date: Wed, 1 May 2013 20:01:10 +0000 (+0000) Subject: Remove some unnecessary calls to ast_bridged_channel() in chan_skinny.c X-Git-Tag: 13.0.0-beta1~1869 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30cf1a590cef1d3b112336e217ca568d13d83381;p=thirdparty%2Fasterisk.git Remove some unnecessary calls to ast_bridged_channel() in chan_skinny.c git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@387183 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index cc483d165e..bf2871e7f0 100644 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -5234,9 +5234,7 @@ static int skinny_transfer(struct skinny_subchannel *sub) ast_channel_name(xferor->owner), ast_bridged_channel(xferor->owner) ? ast_channel_name(ast_bridged_channel(xferor->owner)) : ""); if (ast_bridged_channel(xferor->owner)) { - if (ast_bridged_channel(xferee->owner)) { - ast_queue_control(xferee->owner, AST_CONTROL_UNHOLD); - } + ast_queue_control(xferee->owner, AST_CONTROL_UNHOLD); if (ast_channel_state(xferor->owner) == AST_STATE_RING) { /* play ringing inband */ if ((ts = ast_get_indication_tone(ast_channel_zone(xferor->owner), "ring"))) {