dahdi: dahdi_ioctl_iomux should return 0 on success.

This fixes a regression introduced in revision r9466.  Before this patch
one might see "I/O MUX failed: Success" messages on the Asterisk console
since the return from ioctl was > 0.

Signed-off-by: Sean Bright <sean.bright@gmail.com>
Acked-by: Shaun Ruffell <sruffell@digium.com>

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9496 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
Sean Bright
2010-11-25 00:07:05 +00:00
committed by Shaun Ruffell
parent 08d3ff5671
commit f406bba4c6

View File

@@ -5029,6 +5029,7 @@ static int dahdi_ioctl_iomux(struct file *file, unsigned long data)
if (ret || (chan->iomask & DAHDI_IOMUX_NOWAIT)) {
/* set return value */
put_user(ret, (int __user *)data);
ret = 0;
break; /* get out of loop */
}