From: Benjamin Tissoires Date: Mon, 10 Feb 2014 17:58:51 +0000 (-0500) Subject: HID: usbhid: change return error of usbhid_output_report X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ddea1af9d9387665ee194ae1d98ec0d49c169313;p=openwrt%2Fstaging%2Fblogic.git HID: usbhid: change return error of usbhid_output_report If there is no urbout when sending a output report, ENOSYS (Function not implemented) is a better error than EIO (I/O error). Signed-off-by: Benjamin Tissoires Reviewed-by: David Herrmann Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c index b9a770f4d7ae..0d1d87533f48 100644 --- a/drivers/hid/usbhid/hid-core.c +++ b/drivers/hid/usbhid/hid-core.c @@ -922,7 +922,7 @@ static int usbhid_output_report(struct hid_device *hid, __u8 *buf, size_t count) int actual_length, skipped_report_id = 0, ret; if (!usbhid->urbout) - return -EIO; + return -ENOSYS; if (buf[0] == 0x0) { /* Don't send the Report ID */