dect
/
asterisk
Archived
13
0
Fork 0

Simplify a small bit of logic.

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54003 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
russell 2007-02-12 15:40:23 +00:00
parent 15abba63d9
commit b83ba7c021
1 changed files with 1 additions and 4 deletions

View File

@ -2673,10 +2673,7 @@ int ast_write(struct ast_channel *chan, struct ast_frame *fr)
/* and now put it through the regular translator */
f = (chan->writetrans) ? ast_translate(chan->writetrans, f, 0) : f;
}
if (f)
res = chan->tech->write(chan, f);
else
res = 0;
res = f ? chan->tech->write(chan, f) : 0;
break;
case AST_FRAME_NULL:
case AST_FRAME_IAX: