summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2017-03-01 15:42:10 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2017-03-23 10:18:09 +1000
commitc8fde99ad9e8ec8f1f904a14c5612d926d71ee94 (patch)
tree5355610f1bf7ee7a062c26f0573025dbdde0990f
parenteb8cfa301a89d15e22899fc8f320fcf5f233cf0b (diff)
tablet: drop unnecessary call to reset the changed axes
The only code path that leads here would see the changed_axes array zeroed out in tablet_send_axis_proximity_tip_down_events(), zeroing again is unlikely to make it more zero. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Ping Cheng <pingc@wacom.com>
-rw-r--r--src/evdev-tablet.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c
index bde6f60..eb56322 100644
--- a/src/evdev-tablet.c
+++ b/src/evdev-tablet.c
@@ -1421,7 +1421,6 @@ tablet_flush(struct tablet_dispatch *tablet,
}
if (tablet_has_status(tablet, TABLET_TOOL_LEAVING_PROXIMITY)) {
- memset(tablet->changed_axes, 0, sizeof(tablet->changed_axes));
tablet_notify_proximity(&device->base,
time,
tool,