ALSA: sound/atmel/ac97c.c: remove unused variable
diff mbox

Message ID 14010746.Ukv1maRMaG@wuerfel
State New
Headers show

Commit Message

Arnd Bergmann May 19, 2015, 3:20 p.m. UTC
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>

Comments

Alexander Stein May 19, 2015, 3:38 p.m. UTC | #1
On Tuesday 19 May 2015 17:20:36, 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>

Acked-by: Alexander Stein <alexanders83@web.de>
Takashi Iwai May 20, 2015, 4:21 a.m. UTC | #2
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");
>

Patch
diff mbox

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");