]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/amd/display: remove redundant is_dsc_possible check
authorBhavin Sharma <bhavin.sharma@siliconsignals.io>
Thu, 14 Nov 2024 15:11:11 +0000 (20:41 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Nov 2024 14:38:16 +0000 (09:38 -0500)
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>
drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c

index ebd5df1a36e8bc73f3ce83f3d25beb8b9f234301..d9aaebfa3a0a76bc40df501eb94cde23b3152cf1 100644 (file)
@@ -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)