Commit f175de44 authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

drm/i915: Drop redundant NULL check



intel_bios_get_dsc_params() is only called from
gen11_dsi_dsc_compute_config() and it always passes a non-NULL
crtc_state in. Drop the redundant check.

Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231207193441.20206-4-ville.syrjala@linux.intel.com


Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
parent e05a67fd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3475,7 +3475,6 @@ bool intel_bios_get_dsc_params(struct intel_encoder *encoder,
			if (!devdata->dsc)
				return false;

			if (crtc_state)
			fill_dsc(crtc_state, devdata->dsc, dsc_max_bpc);

			return true;