[dahdi-commits] sruffell: linux/trunk r9423 - /linux/trunk/drivers/dahdi/dahdi-base.c
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Mon Oct 4 12:20:52 CDT 2010
Author: sruffell
Date: Mon Oct 4 12:20:47 2010
New Revision: 9423
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9423
Log:
dahdi: 'if (chan)' -> 'if (!chan)' in dahdi_ioctl_getgains.
Fixes a typo recently introduced that was preventing asterisk from
setting the swgains on a channel.
Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Modified:
linux/trunk/drivers/dahdi/dahdi-base.c
Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=9423&r1=9422&r2=9423
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Mon Oct 4 12:20:47 2010
@@ -3624,7 +3624,7 @@
}
chan = (!gain->chan) ? chan_from_file(file) :
chan_from_num(gain->chan);
- if (chan) {
+ if (!chan) {
res = -EINVAL;
goto cleanup;
}
More information about the dahdi-commits
mailing list