Skip to content

Commit 6104112

Browse files
S-Bhavinalexdeucher
authored andcommitted
drm/amd/display: remove redundant is_dsc_possible check
Since is_dsc_possible is already checked just above, there's no need to check it again before filling out the DSC settings. Signed-off-by: Bhavin Sharma <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 6ecccc0 commit 6104112

File tree

1 file changed

+5
-8
lines changed
  • drivers/gpu/drm/amd/display/dc/dsc

1 file changed

+5
-8
lines changed

drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,14 +1093,11 @@ static bool setup_dsc_config(
10931093
if (!is_dsc_possible)
10941094
goto done;
10951095

1096-
// Final decission: can we do DSC or not?
1097-
if (is_dsc_possible) {
1098-
// Fill out the rest of DSC settings
1099-
dsc_cfg->block_pred_enable = dsc_common_caps.is_block_pred_supported;
1100-
dsc_cfg->linebuf_depth = dsc_common_caps.lb_bit_depth;
1101-
dsc_cfg->version_minor = (dsc_common_caps.dsc_version & 0xf0) >> 4;
1102-
dsc_cfg->is_dp = dsc_sink_caps->is_dp;
1103-
}
1096+
/* Fill out the rest of DSC settings */
1097+
dsc_cfg->block_pred_enable = dsc_common_caps.is_block_pred_supported;
1098+
dsc_cfg->linebuf_depth = dsc_common_caps.lb_bit_depth;
1099+
dsc_cfg->version_minor = (dsc_common_caps.dsc_version & 0xf0) >> 4;
1100+
dsc_cfg->is_dp = dsc_sink_caps->is_dp;
11041101

11051102
done:
11061103
if (!is_dsc_possible)

0 commit comments

Comments
 (0)