aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2019-11-04 15:59:38 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2019-11-04 16:12:52 -0800
commitd843304b22e84b41dd00663a13cb960d2f4d064d (patch)
tree6402852e3462b1ea4e30d10a1c25043b3f4f27df /drivers/input/touchscreen
parentInput: kxtj9 - switch to using polled mode of input devices (diff)
downloadlinux-dev-d843304b22e84b41dd00663a13cb960d2f4d064d.tar.xz
linux-dev-d843304b22e84b41dd00663a13cb960d2f4d064d.zip
Input: synaptics-rmi4 - simplify data read in rmi_f54_work
The body of the for loop is only ever run once as the second standard_report element is never changed from its initial zero init, so the loop condition is never satisfies after the first run. Equally the start member of the first element is never changed from 0, so the index offset is always a constant 0. Remove this needless obfuscation of the code and write it in a straight forward manner. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Link: https://lore.kernel.org/r/20191104114454.10500-3-l.stach@pengutronix.de Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen')
0 files changed, 0 insertions, 0 deletions