Commit 735877fd authored by Dmitry Torokhov's avatar Dmitry Torokhov

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: default avatarJeff LaBundy <jeff@labundy.com>
Reviewed-by: default avatarBenjamin Tissoires <bentiss@kernel.org>
Link: https://lore.kernel.org/r/20240703213756.3375978-8-dmitry.torokhov@gmail.comSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 0cd58773
...@@ -115,9 +115,6 @@ static void input_pass_values(struct input_dev *dev, ...@@ -115,9 +115,6 @@ static void input_pass_values(struct input_dev *dev,
lockdep_assert_held(&dev->event_lock); lockdep_assert_held(&dev->event_lock);
if (!count)
return;
rcu_read_lock(); rcu_read_lock();
handle = rcu_dereference(dev->grab); handle = rcu_dereference(dev->grab);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment