]> git.baikalelectronics.ru Git - kernel.git/commit
USB: opticon: fix return value of tiocmset
authorJohan Hovold <jhovold@gmail.com>
Thu, 21 Mar 2013 11:37:42 +0000 (12:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 20:54:31 +0000 (13:54 -0700)
commit46abb1baf403422203e3297412e4de3e9edefb52
tree111fa9a2a12db34e900fc9d7172c093c3cca4f0e
parentf70b3dcc536d300d026f67c867ccd9aa6f9a15fe
USB: opticon: fix return value of tiocmset

Make sure we return 0 or a negative error number appropriate for
userspace on errors.

Currently 1 rather than 0 is returned on successful operation.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/opticon.c