Commit 0c3c952d authored by Marcelo Mendes Spessoto Junior's avatar Marcelo Mendes Spessoto Junior Committed by Alex Deucher

drm/amd/display: Fix freesync.c codestyle

Remove braces for single statement if expression for freesync.c file
Signed-off-by: default avatarMarcelo Mendes Spessoto Junior <marcelomspessoto@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f28390cd
......@@ -81,6 +81,7 @@ struct mod_freesync *mod_freesync_create(struct dc *dc)
void mod_freesync_destroy(struct mod_freesync *mod_freesync)
{
struct core_freesync *core_freesync = NULL;
if (mod_freesync == NULL)
return;
core_freesync = MOD_FREESYNC_TO_CORE(mod_freesync);
......@@ -278,9 +279,8 @@ static void apply_below_the_range(struct core_freesync *core_freesync,
}
} else if (last_render_time_in_us > (max_render_time_in_us + in_out_vrr->btr.margin_in_us / 2)) {
/* Enter Below the Range */
if (!in_out_vrr->btr.btr_active) {
if (!in_out_vrr->btr.btr_active)
in_out_vrr->btr.btr_active = true;
}
}
/* BTR set to "not active" so disengage */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment