[asterisk-commits] russell: trunk r54003 - /trunk/main/channel.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Feb 12 08:40:24 MST 2007


Author: russell
Date: Mon Feb 12 09:40:23 2007
New Revision: 54003

URL: http://svn.digium.com/view/asterisk?view=rev&rev=54003
Log:
Simplify a small bit of logic.

Modified:
    trunk/main/channel.c

Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?view=diff&rev=54003&r1=54002&r2=54003
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Mon Feb 12 09:40:23 2007
@@ -2673,10 +2673,7 @@
 			/* 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:



More information about the asterisk-commits mailing list