drm/i915: Remove superfluous NULL check
authorTakashi Iwai <tiwai@suse.de>
Tue, 1 Dec 2015 16:09:50 +0000 (17:09 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 4 Dec 2015 10:21:17 +0000 (11:21 +0100)
to_intel_crtc() always returns a non-NULL pointer.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1448986198-3488-2-git-send-email-tiwai@suse.de
drivers/gpu/drm/i915/intel_audio.c

index 9aa83e71b792a70eb3115e3bdfa4a5859c969ec1..97302457e7f9ddaac2c85e28568d93c8a92c1aae 100644 (file)
@@ -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);
                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;
                }