aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Torokhov <[email protected]>2024-07-03 14:37:54 -0700
committerDmitry Torokhov <[email protected]>2024-07-08 16:22:49 -0700
commit735877fde06304ae9d90e17102dc2b139e8d802a (patch)
tree9432013ec7212a7d23bb6f40cf45e6a3e388f7a6
parent0cd58773520584ccb4ce1eeebd8d43f1b27bb24a (diff)
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 <[email protected]> Reviewed-by: Benjamin Tissoires <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
-rw-r--r--drivers/input/input.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c
index 4e12fa79883e..54c57b267b25 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -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);