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>
This commit is contained in:
Dmitry Torokhov 2024-07-03 14:37:54 -07:00
parent 0cd5877352
commit 735877fde0

View File

@ -115,9 +115,6 @@ static void input_pass_values(struct input_dev *dev,
lockdep_assert_held(&dev->event_lock);
if (!count)
return;
rcu_read_lock();
handle = rcu_dereference(dev->grab);