summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-02-12 15:40:23 +0000
committerRussell Bryant <russell@russellbryant.com>2007-02-12 15:40:23 +0000
commit10c4a5fef7bc39e8e77e30d3e10c2640dff616de (patch)
treeb534cd5bca1af664e960ffa7b22c01b08b731571
parent63cc6e10b4981b4c9d76764807f4fc69cd9516d3 (diff)
Simplify a small bit of logic.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@54003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--main/channel.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/main/channel.c b/main/channel.c
index 1a8cfabd5..b02178d39 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -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: