]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: do not check number of events in input_pass_values()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 3 Jul 2024 21:37:54 +0000 (14:37 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 8 Jul 2024 23:22:49 +0000 (16:22 -0700)
commit735877fde06304ae9d90e17102dc2b139e8d802a
tree9432013ec7212a7d23bb6f40cf45e6a3e388f7a6
parent0cd58773520584ccb4ce1eeebd8d43f1b27bb24a
Input: do not check number of events in input_pass_values()

Now that the input_dev->vals array is always there we can be assured
that input_pass_values() is always called with a non-0 number of
events. Remove the check.

Reviewed-by: Jeff LaBundy <jeff@labundy.com>
Reviewed-by: Benjamin Tissoires <bentiss@kernel.org>
Link: https://lore.kernel.org/r/20240703213756.3375978-8-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input.c