Skip to content

Commit 735877f

Browse files
committed
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>
1 parent 0cd5877 commit 735877f

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

drivers/input/input.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@ static void input_pass_values(struct input_dev *dev,
115115

116116
lockdep_assert_held(&dev->event_lock);
117117

118-
if (!count)
119-
return;
120-
121118
rcu_read_lock();
122119

123120
handle = rcu_dereference(dev->grab);

0 commit comments

Comments
 (0)