[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)
commitdb54a53d26322e978e66482208afabaab9cd0752
tree389920f93a45647fec5f90eb27e75213c27934f9
parent043ea18b2e145c4c9cb3c30757a65fe0f1678a35
[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