diff mbox series

[v2,7/7] Input: do not check number of events in input_pass_values()

Message ID 20240703213756.3375978-8-dmitry.torokhov@gmail.com (mailing list archive)
State New
Headers show
Series Simplify event handling logic in input core | expand

Commit Message

Dmitry Torokhov July 3, 2024, 9:37 p.m. UTC
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.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
 drivers/input/input.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

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);