Input: usbtouchscreen - actually check return value of usb_submit_urb()
authorLee Jones <lee.jones@linaro.org>
Wed, 20 Jan 2021 02:19:04 +0000 (18:19 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 20 Jan 2021 03:03:14 +0000 (19:03 -0800)
commit33f93726b7b28f0206e2dfbfa98b54f4415a47ad
tree29f9ba1fc8180162f40ae3d679c714cc141b9120
parent7c0c38402a61db1141dd5a2ae2f44d4cdc17a23a
Input: usbtouchscreen - actually check return value of usb_submit_urb()

Fixes the following W=1 kernel build warning(s):

 drivers/input/touchscreen/usbtouchscreen.c: In function ‘nexio_read_data’:
 drivers/input/touchscreen/usbtouchscreen.c:1052:50: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210114152323.2382283-4-lee.jones@linaro.org
[dtor: log error code as well]
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/usbtouchscreen.c