Commit 61041126 authored by Bhavin Sharma's avatar Bhavin Sharma Committed by Alex Deucher
Browse files

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: default avatarBhavin Sharma <bhavin.sharma@siliconsignals.io>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 6ecccc09
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -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
	/* 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)