]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: ark3116: fix endpoint-check return value
authorJohan Hovold <johan@kernel.org>
Tue, 31 Jan 2017 10:51:07 +0000 (11:51 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 31 Jan 2017 16:20:37 +0000 (17:20 +0100)
commitbe69745dd458a052536c6adaabe9b3978c1a8350
tree7af600527fc6295571bc86dc49f7c9350bca9c8a
parentbc0af55a55f993c00baa9c5058828eacd1d6bfb2
USB: serial: ark3116: fix endpoint-check return value

Return -ENODEV rather than -EINVAL on probe errors due to a missing
endpoint.

Also clean up the endpoint sanity check somewhat and use the interface
device for logging a more compact error in case an expected endpoint is
missing.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ark3116.c