Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1299535
| From | Aniroop Mathur <a.mathur@samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] Input: evdev - Avoid duplicate checking of empty SYN_REPORT |
| Date | 2015-12-31 00:30 +0100 |
| Message-ID | <qLylQ-4Ft-13@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Input core already drops empty syn_report event so there is no need
to check again for dropping empty syn_report event in evdev handler
for all clients on every new event.
Signed-off-by: Aniroop Mathur <a.mathur@samsung.com>
---
drivers/input/evdev.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c
index e9ae3d5..6e242b7 100644
--- a/drivers/input/evdev.c
+++ b/drivers/input/evdev.c
@@ -276,13 +276,8 @@ static void evdev_pass_values(struct evdev_client *client,
if (__evdev_is_filtered(client, v->type, v->code))
continue;
- if (v->type == EV_SYN && v->code == SYN_REPORT) {
- /* drop empty SYN_REPORT */
- if (client->packet_head == client->head)
- continue;
-
+ if (v->type == EV_SYN && v->code == SYN_REPORT)
wakeup = true;
- }
event.type = v->type;
event.code = v->code;
--
2.6.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] Input: evdev - Avoid duplicate checking of empty SYN_REPORT Aniroop Mathur <a.mathur@samsung.com> - 2015-12-31 00:30 +0100 Re: [PATCH] Input: evdev - Avoid duplicate checking of empty SYN_REPORT Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-01-03 05:40 +0100
csiph-web