public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org,
	Mengdong Lin <mengdong.lin@linux.intel.com>,
	Vinod Koul <vinod.koul@intel.com>,
	intel-gfx@lists.freedesktop.org,
	Daniel Vetter <daniel.vetter@intel.com>,
	David Henningsson <david.henningsson@canonical.com>
Subject: Re: [PATCH v2 1/9] drm/i915: Remove superfluous NULL check
Date: Fri, 4 Dec 2015 11:21:24 +0100	[thread overview]
Message-ID: <20151204102124.GN10243@phenom.ffwll.local> (raw)
In-Reply-To: <1448986198-3488-2-git-send-email-tiwai@suse.de>

On Tue, Dec 01, 2015 at 05:09:50PM +0100, Takashi Iwai wrote:
> to_intel_crtc() always returns a non-NULL pointer.
> 
> Signed-off-by: Takashi Iwai <tiwai@suse.de>

Queued for -next, thanks for the patch.
-Daniel

> ---
>  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 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;
>  		}
> -- 
> 2.6.3
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2015-12-04 10:21 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-01 16:09 [PATCH v2 0/9] Add get_eld audio component for i915/HD-audio Takashi Iwai
2015-12-01 16:09 ` [PATCH v2 1/9] drm/i915: Remove superfluous NULL check Takashi Iwai
2015-12-04 10:21   ` Daniel Vetter [this message]
2015-12-04 12:16   ` Ville Syrjälä
2015-12-04 12:54     ` Takashi Iwai
2015-12-04 13:07       ` Ville Syrjälä
2015-12-04 13:12         ` Takashi Iwai
2015-12-04 14:55           ` Daniel Vetter
2015-12-01 16:09 ` [PATCH v2 2/9] drm/i915: Add get_eld audio component Takashi Iwai
2015-12-04 10:21   ` Daniel Vetter
2015-12-04 10:49     ` Takashi Iwai
2015-12-04 12:10       ` Ville Syrjälä
2015-12-04 12:50         ` [Intel-gfx] " Takashi Iwai
2015-12-04 15:00       ` Daniel Vetter
2015-12-04 15:15         ` Takashi Iwai
2015-12-04 15:53           ` Daniel Vetter
2015-12-04 16:03             ` Takashi Iwai
2015-12-04 15:54           ` Daniel Vetter
2015-12-04 16:03             ` Takashi Iwai
2015-12-04 16:15               ` Daniel Vetter
2015-12-04 16:20                 ` Takashi Iwai
2015-12-04 16:27                   ` Takashi Iwai
2015-12-04 16:49                     ` Daniel Vetter
2015-12-04 16:52                       ` Takashi Iwai
2015-12-01 16:09 ` [PATCH v2 3/9] drm/i915: refactoring audio component functions Takashi Iwai
2015-12-01 16:09 ` [PATCH v2 4/9] drm/i915: Add reverse mapping between port and intel_encoder Takashi Iwai
2015-12-04 14:40   ` Takashi Iwai
2015-12-04 15:02     ` Daniel Vetter
2015-12-04 15:09       ` Takashi Iwai
2015-12-01 16:09 ` [PATCH v2 5/9] ALSA: hda - Split ELD update code from hdmi_present_sense() Takashi Iwai
2015-12-01 16:09 ` [PATCH v2 6/9] ALSA: hda - Use component ops for i915 HDMI/DP audio jack handling Takashi Iwai
2015-12-01 16:09 ` [PATCH v2 7/9] ALSA: hda - Do zero-clear in snd_hdmi_parse_eld() itself Takashi Iwai
2015-12-01 16:09 ` [PATCH v2 8/9] ALSA: hda - Skip ELD notification during PM process Takashi Iwai
2015-12-03 16:44   ` Takashi Iwai
2015-12-01 16:09 ` [PATCH v2 9/9] ALSA: hda - Move audio component accesses to hdac_i915.c Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151204102124.GN10243@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=alsa-devel@alsa-project.org \
    --cc=daniel.vetter@intel.com \
    --cc=david.henningsson@canonical.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=mengdong.lin@linux.intel.com \
    --cc=tiwai@suse.de \
    --cc=vinod.koul@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox