From 872f22cf49c6b8171ec094cf8606b10b0d8c47fc Mon Sep 17 00:00:00 2001 From: Rodrigo Vivi Date: Mon, 15 Jan 2001 21:49:48 -0200 Subject: [PATCH] drm/i915: remove intel_dp NULL deref on psr_update. Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/intel_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 9282321e..56dffea 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -1625,7 +1625,7 @@ void intel_edp_psr_disable(struct intel_dp *intel_dp) void intel_edp_psr_update(struct drm_device *dev) { struct intel_encoder *encoder; - struct intel_dp *intel_dp = NULL; + struct intel_dp *intel_dp; list_for_each_entry(encoder, &dev->mode_config.encoder_list, base.head) if (encoder->type == INTEL_OUTPUT_EDP) { -- 1.7.11.7