[alsa-devel] [PATCH RFC 2/4] drm/i915: Remove superfluous NULL check
Takashi Iwai
tiwai at suse.de
Thu Nov 12 17:20:12 CET 2015
to_intel_crtc() always returns a non-NULL pointer.
Signed-off-by: Takashi Iwai <tiwai at suse.de>
---
drivers/gpu/drm/i915/intel_audio.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915/intel_audio.c
index ec81f8481d25..dc8141324fcd 100644
--- a/drivers/gpu/drm/i915/intel_audio.c
+++ b/drivers/gpu/drm/i915/intel_audio.c
@@ -658,10 +658,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;
}
--
2.6.3
More information about the Alsa-devel
mailing list