提交 d8578836 编写于 作者: D Daniel Vetter

Revert "drm/i915: Remove superfluous NULL check"

This reverts commit 89f41f4f.

It's possible that ->crtc is NULL in here. Noticed by Ville.
Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
上级 6a8beeff
......@@ -653,6 +653,10 @@ static int i915_audio_component_sync_audio_rate(struct device *dev,
intel_dig_port = enc_to_dig_port(&intel_encoder->base);
if (port == intel_dig_port->port) {
crtc = to_intel_crtc(intel_encoder->base.crtc);
if (!crtc) {
DRM_DEBUG_KMS("%s: crtc is NULL\n", __func__);
continue;
}
pipe = crtc->pipe;
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册