OSDN Git Service

USB: mct_u232: Fix incorrect TIOCMSET return
authorAlan Cox <alan@linux.intel.com>
Tue, 22 May 2012 19:45:13 +0000 (20:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Jun 2012 18:34:15 +0000 (11:34 -0700)
commita9f7a26951b7806be35149fda8d72d021d532a49
treee1f1f44339c623f08ef44132b3ef0e85a108280b
parent08bcba2572549eb8318627178c370a828e6ffe44
USB: mct_u232: Fix incorrect TIOCMSET return

commit 1aa3c63cf0a79153ee13c8f82e4eb6c40b66a161 upstream.

The low level helper returns 1 on success. The ioctl should however return
0. As this is the only user of the helper return, make the helper return 0 or
an error code.

Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=43009
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/mct_u232.c