]> git.baikalelectronics.ru Git - kernel.git/commit
Input: elants_i2c - drop zero-checking of ABS_MT_TOUCH_MAJOR resolution
authorDmitry Osipenko <digetx@gmail.com>
Mon, 29 Mar 2021 05:57:48 +0000 (22:57 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 29 Mar 2021 06:00:17 +0000 (23:00 -0700)
commit2ea2f2a6258039469ec21116f2ad0d37bd7741cd
tree90356e8568bd8a7294f3e5429c95fee3995f8e4a
parent073a6f8311a4304d420e87734ef8f1c412e2d062
Input: elants_i2c - drop zero-checking of ABS_MT_TOUCH_MAJOR resolution

Drop unnecessary zero-checking of ABS_MT_TOUCH_MAJOR resolution since
there is no difference between setting resolution to 0 vs not setting
it at all. This change makes code cleaner a tad.

Suggested-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20210328235507.19240-1-digetx@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/elants_i2c.c