[1/7] drm/i915: Remove superfluous NULL check

Submitted by Takashi Iwai on Nov. 30, 2015, 1:37 p.m.

Details

Message ID 1448890671-2983-2-git-send-email-tiwai@suse.de
State Accepted
Commit 89f41f4f90741fe94b6da9d4d366628a9b0be8f1
Headers show
Series "Add get_eld audio component for i915/HD-audio" ( rev: 1 ) in Intel GFX

Browsing this patch as part of:
"Add get_eld audio component for i915/HD-audio" rev 1 in Intel GFX
<< prev patch [1/7] next patch >>

Commit Message

Takashi Iwai Nov. 30, 2015, 1:37 p.m.
to_intel_crtc() always returns a non-NULL pointer.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 drivers/gpu/drm/i915/intel_audio.c | 4 ----
 1 file changed, 4 deletions(-)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915/intel_audio.c
index 4dccd9b003a1..0c38cc6c82ae 100644
--- a/drivers/gpu/drm/i915/intel_audio.c
+++ b/drivers/gpu/drm/i915/intel_audio.c
@@ -656,10 +656,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;
 		}