tap: remove unnecessary TAP_STATE_DEAD assignment
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 13 Jul 2018 00:55:44 +0000 (10:55 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 13 Jul 2018 00:56:51 +0000 (10:56 +1000)
All palm touches are set to DEAD anyway.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-mt-touchpad-tap.c

index e3e051c..90335e1 100644 (file)
@@ -186,7 +186,6 @@ tp_tap_idle_handle_event(struct tp_dispatch *tp,
                break;
        case TAP_EVENT_PALM:
                tp->tap.state = TAP_STATE_IDLE;
-               t->tap.state = TAP_TOUCH_STATE_DEAD;
                break;
        case TAP_EVENT_PALM_UP:
                break;
@@ -239,7 +238,6 @@ tp_tap_touch_handle_event(struct tp_dispatch *tp,
                break;
        case TAP_EVENT_PALM:
                tp->tap.state = TAP_STATE_IDLE;
-               t->tap.state = TAP_TOUCH_STATE_DEAD;
                tp_tap_clear_timer(tp);
                break;
        case TAP_EVENT_PALM_UP: