summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-10-15 15:29:37 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-10-15 15:30:55 +1000
commit4985de5ef3e81d32d694c3d4a480a6311b6f1416 (patch)
tree2778fced91635c520db5abf4127f9aff4046481e
parente26fc3c66c04eb3d3164e6a9e7c983154fb00856 (diff)
Remove two dead assignments
Value stored but never read. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/xf86libinput.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/xf86libinput.c b/src/xf86libinput.c
index a00b0a5..f774455 100644
--- a/src/xf86libinput.c
+++ b/src/xf86libinput.c
@@ -398,7 +398,7 @@ xf86libinput_shared_disable(struct xf86libinput_device *shared_device)
libinput_device_set_user_data(device, NULL);
libinput_path_remove_device(device);
- device = libinput_device_unref(device);
+ libinput_device_unref(device);
shared_device->device = NULL;
}
@@ -3624,13 +3624,13 @@ update_mode_prop_cb(ClientPtr client, pointer closure)
groups[idx] = mode;
driver_data->allow_mode_group_updates = true;
- rc = XIChangeDeviceProperty(pInfo->dev,
- prop_mode_groups,
- XA_INTEGER, 8,
- PropModeReplace,
- val->size,
- groups,
- TRUE);
+ XIChangeDeviceProperty(pInfo->dev,
+ prop_mode_groups,
+ XA_INTEGER, 8,
+ PropModeReplace,
+ val->size,
+ groups,
+ TRUE);
driver_data->allow_mode_group_updates = false;
out: