summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-06-22 15:59:32 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-06-22 15:59:32 +1000
commit01456336976213cec724533e13c41f1908491e58 (patch)
tree96503de350e3eeb9d7d6414b795239569f09007c /src
parent33c5bfc702645e603312aeb5380c53afeaad1dce (diff)
eventcomm: proto_data is not null, don't check
We allocate it just a few lines north of here, and already dereferenced it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'src')
-rw-r--r--src/eventcomm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eventcomm.c b/src/eventcomm.c
index 84f929f..172a59e 100644
--- a/src/eventcomm.c
+++ b/src/eventcomm.c
@@ -872,7 +872,7 @@ EventReadDevDimensions(InputInfoPtr pInfo)
proto_data->axis_map[i] = -1;
proto_data->cur_slot = -1;
- if (event_query_is_touchpad(pInfo->fd, (proto_data) ? proto_data->need_grab : TRUE)) {
+ if (event_query_is_touchpad(pInfo->fd, proto_data->need_grab)) {
event_query_touch(pInfo);
event_query_axis_ranges(pInfo);
}