[PATCH 6/8] drm/i915: Clean up intel_get_frame_time_us()
Ville Syrjala
ville.syrjala at linux.intel.com
Thu Dec 7 19:34:39 UTC 2023
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
intel_get_frame_time_us() is never called with a NULL crtc_state so
drop the redundant check.
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
drivers/gpu/drm/i915/display/intel_psr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
index 6029bb71276c..0058b07a7cda 100644
--- a/drivers/gpu/drm/i915/display/intel_psr.c
+++ b/drivers/gpu/drm/i915/display/intel_psr.c
@@ -893,7 +893,7 @@ transcoder_has_psr2(struct drm_i915_private *dev_priv, enum transcoder cpu_trans
static u32 intel_get_frame_time_us(const struct intel_crtc_state *cstate)
{
- if (!cstate || !cstate->hw.active)
+ if (!cstate->hw.active)
return 0;
return DIV_ROUND_UP(1000 * 1000,
--
2.41.0
More information about the Intel-gfx
mailing list