mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
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 <bhavin.sharma@siliconsignals.io> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
6ecccc093e
commit
6104112693
|
|
@ -1093,14 +1093,11 @@ static bool setup_dsc_config(
|
|||
if (!is_dsc_possible)
|
||||
goto done;
|
||||
|
||||
// Final decission: can we do DSC or not?
|
||||
if (is_dsc_possible) {
|
||||
// Fill out the rest of DSC settings
|
||||
dsc_cfg->block_pred_enable = dsc_common_caps.is_block_pred_supported;
|
||||
dsc_cfg->linebuf_depth = dsc_common_caps.lb_bit_depth;
|
||||
dsc_cfg->version_minor = (dsc_common_caps.dsc_version & 0xf0) >> 4;
|
||||
dsc_cfg->is_dp = dsc_sink_caps->is_dp;
|
||||
}
|
||||
/* Fill out the rest of DSC settings */
|
||||
dsc_cfg->block_pred_enable = dsc_common_caps.is_block_pred_supported;
|
||||
dsc_cfg->linebuf_depth = dsc_common_caps.lb_bit_depth;
|
||||
dsc_cfg->version_minor = (dsc_common_caps.dsc_version & 0xf0) >> 4;
|
||||
dsc_cfg->is_dp = dsc_sink_caps->is_dp;
|
||||
|
||||
done:
|
||||
if (!is_dsc_possible)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user