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:
parent
408787c77b
commit
c4ae51ffae
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user