diff options
Diffstat (limited to 'drivers/input/input-mt.c')
-rw-r--r-- | drivers/input/input-mt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/input-mt.c b/drivers/input/input-mt.c index 1abbc170d8b7..8c4b50fd9a79 100644 --- a/drivers/input/input-mt.c +++ b/drivers/input/input-mt.c | |||
@@ -251,7 +251,7 @@ void input_mt_sync_frame(struct input_dev *dev) | |||
251 | 251 | ||
252 | if (mt->flags & INPUT_MT_DROP_UNUSED) { | 252 | if (mt->flags & INPUT_MT_DROP_UNUSED) { |
253 | for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { | 253 | for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { |
254 | if (s->frame == mt->frame) | 254 | if (input_mt_is_used(mt, s)) |
255 | continue; | 255 | continue; |
256 | input_mt_slot(dev, s - mt->slots); | 256 | input_mt_slot(dev, s - mt->slots); |
257 | input_event(dev, EV_ABS, ABS_MT_TRACKING_ID, -1); | 257 | input_event(dev, EV_ABS, ABS_MT_TRACKING_ID, -1); |