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)
commit7b727acc412c9320dc56a0fd7312febf8710ac0e
tree2ea966b07efde53952e653fae09e1f6e47344ecd
parent1fab84aa635572fbd74df8fd4fd25ea0a24c76e5
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