mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
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:
parent
0cd5877352
commit
735877fde0
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user