diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-12-01 17:09:50 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-12-04 11:21:17 +0100 |
commit | 89f41f4f90741fe94b6da9d4d366628a9b0be8f1 (patch) | |
tree | fa431eb543452d05c8de816bf1d2dda0665ea140 /drivers/gpu/drm/i915/intel_audio.c | |
parent | 63ba534ecf78c301df87b25267406002cc1af14a (diff) | |
download | op-kernel-dev-89f41f4f90741fe94b6da9d4d366628a9b0be8f1.zip op-kernel-dev-89f41f4f90741fe94b6da9d4d366628a9b0be8f1.tar.gz |
drm/i915: Remove superfluous NULL check
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
Diffstat (limited to 'drivers/gpu/drm/i915/intel_audio.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_audio.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915/intel_audio.c index 9aa83e7..9730245 100644 --- a/drivers/gpu/drm/i915/intel_audio.c +++ b/drivers/gpu/drm/i915/intel_audio.c @@ -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; } |