From: Wei Yongjun <redacted>
Fix to return a negative error code from the urb submit error
handling case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun <redacted>
---
drivers/input/tablet/wacom_sys.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Hi Wei,
On Fri, Aug 23, 2013 at 10:53:00AM +0800, Wei Yongjun wrote:
quoted hunk
From: Wei Yongjun <redacted>
Fix to return a negative error code from the urb submit error
handling case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun <redacted>
---
drivers/input/tablet/wacom_sys.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
If I remember correctly usb_submit_urb() uses errno definitions in a
creative way, so returning them verbatim to the upper layers is not teh
beset solution. I will change this to return -EIO instead.
Thanks.
--
Dmitry