From d4ede2256c1023dbb9eaaa1fb9a5a70aff4def14 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 19 Sep 2019 11:39:24 +1000 Subject: [PATCH] touchpad: drop useless asserts() Just above that line is an early return if either is NULL, so... Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad-thumb.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/evdev-mt-touchpad-thumb.c b/src/evdev-mt-touchpad-thumb.c index eb20616..103cf58 100644 --- a/src/evdev-mt-touchpad-thumb.c +++ b/src/evdev-mt-touchpad-thumb.c @@ -309,9 +309,6 @@ tp_thumb_update_multifinger(struct tp_dispatch *tp) if (!first || !second) return; - assert(first); - assert(second); - distance.x = abs(first->point.x - second->point.x); distance.y = abs(first->point.y - second->point.y); mm = evdev_device_unit_delta_to_mm(tp->device, &distance); -- 2.7.4