]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] usbserial: Fixes wrong return values.
authorLuiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Tue, 13 Jun 2006 01:46:20 +0000 (22:46 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Jun 2006 22:04:18 +0000 (15:04 -0700)
commitfadca2ddb8cde310875bb1b6a62e6358c1978fb1
tree389920f93a45647fec5f90eb27e75213c27934f9
parent9c2c23150154d102508a7eb3bf77ed60867ca8d1
[PATCH] usbserial: Fixes wrong return values.

Some usbserial functions returns -EINVAL if the port doesn't exist or if
it's not opened. However, the right error code for such situations is
-ENODEV.

Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/usb-serial.c