From: Takashi Iwai <tiwai@suse.de>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Alexander Stein <alexanders83@web.de>,
Nicolas Ferre <nicolas.ferre@atmel.com>,
alsa-devel@alsa-project.org, broonie@kernel.org,
Alexandre Belloni <alexandre.belloni@free-electrons.com>
Subject: Re: [PATCH] ALSA: sound/atmel/ac97c.c: remove unused variable
Date: Wed, 20 May 2015 06:21:50 +0200 [thread overview]
Message-ID: <s5hfv6rubdt.wl-tiwai@suse.de> (raw)
In-Reply-To: <14010746.Ukv1maRMaG@wuerfel>
At Tue, 19 May 2015 17:20:36 +0200,
Arnd Bergmann wrote:
>
> The recently added DT support for the ac97 driver is causing
> a gcc warning:
>
> sound/atmel/ac97c.c: In function 'atmel_ac97c_probe_dt':
> sound/atmel/ac97c.c:919:29: warning: unused variable 'match' [-Wunused-variable]
> const struct of_device_id *match;
>
> The variable is clearly unused, so we can remove it.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Applied, thanks.
Takashi
>
> diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c
> index cf4cedf2b420..6dad042630d8 100644
> --- a/sound/atmel/ac97c.c
> +++ b/sound/atmel/ac97c.c
> @@ -916,7 +916,6 @@ static struct ac97c_platform_data *atmel_ac97c_probe_dt(struct device *dev)
> {
> struct ac97c_platform_data *pdata;
> struct device_node *node = dev->of_node;
> - const struct of_device_id *match;
>
> if (!node) {
> dev_err(dev, "Device does not have associated DT data\n");
>
prev parent reply other threads:[~2015-05-20 4:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-19 15:20 [PATCH] ALSA: sound/atmel/ac97c.c: remove unused variable Arnd Bergmann
2015-05-19 15:38 ` Alexander Stein
2015-05-20 4:21 ` Takashi Iwai [this message]
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=s5hfv6rubdt.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alexanders83@web.de \
--cc=alexandre.belloni@free-electrons.com \
--cc=alsa-devel@alsa-project.org \
--cc=arnd@arndb.de \
--cc=broonie@kernel.org \
--cc=nicolas.ferre@atmel.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