mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 11:32:25 +00:00
Simplify a small bit of logic.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@54003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2673,10 +2673,7 @@ int ast_write(struct ast_channel *chan, struct ast_frame *fr)
|
|||||||
/* and now put it through the regular translator */
|
/* and now put it through the regular translator */
|
||||||
f = (chan->writetrans) ? ast_translate(chan->writetrans, f, 0) : f;
|
f = (chan->writetrans) ? ast_translate(chan->writetrans, f, 0) : f;
|
||||||
}
|
}
|
||||||
if (f)
|
res = f ? chan->tech->write(chan, f) : 0;
|
||||||
res = chan->tech->write(chan, f);
|
|
||||||
else
|
|
||||||
res = 0;
|
|
||||||
break;
|
break;
|
||||||
case AST_FRAME_NULL:
|
case AST_FRAME_NULL:
|
||||||
case AST_FRAME_IAX:
|
case AST_FRAME_IAX:
|
||||||
|
|||||||
Reference in New Issue
Block a user