]> git.baikalelectronics.ru Git - kernel.git/commit
Input: cm109 - fix checking return value of usb_control_msg
authoraxel lin <axel.lin@gmail.com>
Thu, 25 Aug 2011 16:42:09 +0000 (09:42 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 27 Aug 2011 06:20:30 +0000 (23:20 -0700)
commit97d5fd073f79427f3fa25e245a59669f17904a78
tree2ea966b07efde53952e653fae09e1f6e47344ecd
parentc262d751b8af87867620cfb40ac5b9c6c8da6481
Input: cm109 - fix checking return value of usb_control_msg

If successful, usb_control_msg returns the number of bytes transferred,
otherwise a negative error number.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/cm109.c