Commit 89f41f4f authored by Takashi Iwai's avatar Takashi Iwai Committed by Daniel Vetter

drm/i915: Remove superfluous NULL check

to_intel_crtc() always returns a non-NULL pointer.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1448986198-3488-2-git-send-email-tiwai@suse.de
parent 63ba534e
...@@ -653,10 +653,6 @@ static int i915_audio_component_sync_audio_rate(struct device *dev, ...@@ -653,10 +653,6 @@ 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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment