summaryrefslogtreecommitdiff
path: root/dix/getevents.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-05-10 12:11:57 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-06-07 13:30:54 +1000
commit642569fc79a1814acca1c8f529539b054bf36907 (patch)
treee3c728750e63e95c5454f4a5d3c4591beb15a172 /dix/getevents.c
parent11ecfb8884b7c4def0863a57868a6b9fa1b63ae5 (diff)
Replace a few BUG_WARN with BUG_RETURN_VAL
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'dix/getevents.c')
-rw-r--r--dix/getevents.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/dix/getevents.c b/dix/getevents.c
index 4fbaa6c94..baa26c4b8 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -1821,10 +1821,7 @@ GetTouchEvents(InternalEvent *events, DeviceIntPtr dev, uint32_t ddx_touchid,
if (flags & TOUCH_CLIENT_ID) { /* A DIX-submitted TouchEnd */
touchpoint.dix_ti = TouchFindByClientID(dev, ddx_touchid);
- BUG_WARN(!touchpoint.dix_ti);
-
- if (!touchpoint.dix_ti)
- return 0;
+ BUG_RETURN_VAL(!touchpoint.dix_ti, 0);
if (!mask_in ||
!valuator_mask_isset(mask_in, 0) ||