projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79e91f8
)
touchpad: drop useless asserts()
author
Peter Hutterer
<peter.hutterer@who-t.net>
Thu, 19 Sep 2019 01:39:24 +0000
(11:39 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Wed, 25 Sep 2019 04:10:02 +0000
(
04:10
+0000)
Just above that line is an early return if either is NULL, so...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-mt-touchpad-thumb.c
patch
|
blob
|
history
diff --git
a/src/evdev-mt-touchpad-thumb.c
b/src/evdev-mt-touchpad-thumb.c
index
eb20616
..
103cf58
100644
(file)
--- 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);