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@digium.com>

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9423 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
Shaun Ruffell 2010-10-04 17:20:47 +00:00
parent 408787c77b
commit c4ae51ffae

View File

@ -3624,7 +3624,7 @@ static int dahdi_ioctl_getgains(struct file *file, unsigned long data)
} }
chan = (!gain->chan) ? chan_from_file(file) : chan = (!gain->chan) ? chan_from_file(file) :
chan_from_num(gain->chan); chan_from_num(gain->chan);
if (chan) { if (!chan) {
res = -EINVAL; res = -EINVAL;
goto cleanup; goto cleanup;
} }