mirror of https://gitee.com/openkylin/linux.git
Revert "drm/i915: Remove superfluous NULL check"
This reverts commit 89f41f4f90
.
It's possible that ->crtc is NULL in here. Noticed by Ville.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
This commit is contained in:
parent
6a8beeffed
commit
d8578836ad
|
@ -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);
|
intel_dig_port = enc_to_dig_port(&intel_encoder->base);
|
||||||
if (port == intel_dig_port->port) {
|
if (port == intel_dig_port->port) {
|
||||||
crtc = to_intel_crtc(intel_encoder->base.crtc);
|
crtc = to_intel_crtc(intel_encoder->base.crtc);
|
||||||
|
if (!crtc) {
|
||||||
|
DRM_DEBUG_KMS("%s: crtc is NULL\n", __func__);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
pipe = crtc->pipe;
|
pipe = crtc->pipe;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue