From 3483bd8c14a38f95e9f628a3570a177a89e5fd92 Mon Sep 17 00:00:00 2001 From: Stephan Lachnit Date: Tue, 7 Jan 2020 09:47:19 +0100 Subject: [PATCH] driver-hidpp20: minor cleanup Removes useless setting of the dpi index when updating resolutions. Removes weird empty line. Signed-off-by: Stephan Lachnit --- src/driver-hidpp20.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/driver-hidpp20.c b/src/driver-hidpp20.c index df13f125..f56fbe2d 100644 --- a/src/driver-hidpp20.c +++ b/src/driver-hidpp20.c @@ -1487,11 +1487,6 @@ hidpp20drv_commit(struct ratbag_device *device) } ratbag_profile_for_each_resolution(profile, resolution) { - if (resolution->is_active) { - log_raw(device->ratbag, "dpi index: %d, profile %d\n", resolution->index, profile->index); - dpi_index = resolution->index; - } - rc = hidpp20drv_update_resolution_dpi(resolution, resolution->dpi_x, resolution->dpi_y); @@ -1522,7 +1517,6 @@ hidpp20drv_commit(struct ratbag_device *device) return RATBAG_ERROR_DEVICE; } } - } if (drv_data->capabilities & HIDPP_CAP_ONBOARD_PROFILES_8100) {