1
0
forked from drath/libratbag

driver-hidpp20: minor cleanup

Removes useless setting of the dpi index when updating resolutions.
Removes weird empty line.

Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
This commit is contained in:
Stephan Lachnit
2020-01-07 09:47:19 +01:00
committed by Peter Hutterer
parent 0fb0eb3d42
commit 3483bd8c14

View File

@@ -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) {