mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
drm/amd/display: Fix freesync.c codestyle
Remove braces for single statement if expression for freesync.c file Signed-off-by: Marcelo Mendes Spessoto Junior <marcelomspessoto@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
f28390cd00
commit
0c3c952d05
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user