Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1510286

Re: [PATCH] ASoC: hdmi-codec: Fix hdmi_of_xlate_dai_name when #sound-dai-cells = <0>

From Mark Brown <broonie@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH] ASoC: hdmi-codec: Fix hdmi_of_xlate_dai_name when #sound-dai-cells = <0>
Date 2016-10-27 16:40 +0200
Message-ID <swU0y-38X-31@gated-at.bofh.it> (permalink)
References <swU0y-38X-33@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Thu, Oct 27, 2016 at 12:42:48PM +0100, Jon Medhurst (Tixy) wrote:

> -	int id = args->args[0];
> +	int id = args->args_count ? args->args[0] : 0;

Please write normal if statements for legibility.

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] ASoC: hdmi-codec: Fix hdmi_of_xlate_dai_name when  #sound-dai-cells = <0> Mark Brown <broonie@kernel.org> - 2016-10-27 16:40 +0200
  [PATCH v2] ASoC: hdmi-codec: Fix hdmi_of_xlate_dai_name when  #sound-dai-cells = <0> "Jon Medhurst (Tixy)" <tixy@linaro.org> - 2016-10-28 10:20 +0200

csiph-web