touchpad: remove duplicate if condition

This was never true, we for the first part 3 lines above and return early. So
if we get here, it's always false.

commit aa87d2b25b added the new condition above, so since then this code
was inactive and can be removed.

https://bugs.freedesktop.org/show_bug.cgi?id=104279

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2017-12-18 08:59:17 +10:00
parent 61bdc05fb0
commit 4da9d51b67

View file

@ -1284,14 +1284,6 @@ tp_need_motion_history_reset(struct tp_dispatch *tp)
if (tp->nfingers_down != tp->old_nfingers_down)
return true;
/* if we're transitioning between slots and fake touches in either
* direction, we may get a coordinate jump
*/
if (tp->nfingers_down != tp->old_nfingers_down &&
(tp->nfingers_down > tp->num_slots ||
tp->old_nfingers_down > tp->num_slots))
return true;
/* Quirk: if we had multiple events without x/y axis
information, the next x/y event is going to be a jump. So we
reset that touch to non-dirty effectively swallowing that event