From: Mukesh Ojha <mojha@codeaurora.org>
To: YueHaibing <yuehaibing@huawei.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>,
Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
kernel-janitors@vger.kernel.org
Subject: Re: [PATCH -next] ASoC: simple-card-utils: remove set but not used variable ''
Date: Mon, 25 Mar 2019 13:12:01 +0530 [thread overview]
Message-ID: <6a0c2306-088f-cdbc-0730-60b899611c6f@codeaurora.org> (raw)
In-Reply-To: <20190323020838.107533-1-yuehaibing@huawei.com>
On 3/23/2019 7:38 AM, YueHaibing wrote:
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> sound/soc/generic/simple-card-utils.c: In function 'asoc_simple_parse_clk':
> sound/soc/generic/simple-card-utils.c:164:18: warning:
> parameter 'dai_name' set but not used [-Wunused-but-set-parameter]
>
> It's not used since commit 0580dde59438 ("ASoC: simple-card-utils: add
I am not able to find this commit
0580dde59438
> asoc_simple_debug_info()"), so can be removed.
>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
> sound/soc/generic/simple-card-utils.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/sound/soc/generic/simple-card-utils.c b/sound/soc/generic/simple-card-utils.c
> index 4ed68348f939..db1458a19985 100644
> --- a/sound/soc/generic/simple-card-utils.c
> +++ b/sound/soc/generic/simple-card-utils.c
> @@ -173,10 +173,8 @@ int asoc_simple_parse_clk(struct device *dev,
> * see
> * soc-core.c :: snd_soc_init_multicodec()
> */
> - if (dlc) {
> + if (dlc)
> dai_of_node = dlc->of_node;
> - dai_name = dlc->dai_name;
I don't see any function like `asoc_simple_parse_clk`
but instead this `asoc_simple_card_parse_clk` and there the variable is
used.
Can you double check latest code base ?
Thanks,
Mukesh
> - }
>
> /*
> * Parse dai->sysclk come from "clocks = <&xxx>"
>
>
>
>
>
next prev parent reply other threads:[~2019-03-25 7:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-23 2:08 YueHaibing
[not found] ` <87a7hjitm0.wl-kuninori.morimoto.gx@renesas.com>
2019-03-25 3:03 ` YueHaibing
2019-03-25 3:17 ` [PATCH v2 -next] ASoC: simple-card-utils: remove set but not used variable 'dai_name' YueHaibing
2019-03-27 14:53 ` Mukesh Ojha
2019-03-25 7:42 ` Mukesh Ojha [this message]
2019-03-25 7:58 ` [PATCH -next] ASoC: simple-card-utils: remove set but not used variable '' YueHaibing
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=6a0c2306-088f-cdbc-0730-60b899611c6f@codeaurora.org \
--to=mojha@codeaurora.org \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=suzuki.katsuhiro@socionext.com \
--cc=tiwai@suse.com \
--cc=yuehaibing@huawei.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
Powered by JetHome