diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-06-22 15:59:32 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-06-22 15:59:32 +1000 |
commit | 01456336976213cec724533e13c41f1908491e58 (patch) | |
tree | 96503de350e3eeb9d7d6414b795239569f09007c /src | |
parent | 33c5bfc702645e603312aeb5380c53afeaad1dce (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.c | 2 |
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); } |