Skip to contentSkip to conversation

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

PATCH Applied Arnd Bergmann 3 participants 3 messages May 19, 2015 – May 20, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: sound/atmel/ac97c.c: remove unused variable

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.

sound/atmel/ac97c.c +0 -1
index cf4cedf2b420..6dad042630d8 100644
@@ -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");
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Arnd Bergmann

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.

Applied
#2 lore raw
In reply to Arnd Bergmann

At Tue, 19 May 2015 17:20:36 +0200,

Quoted 11 lines · Arnd Bergmann

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.

Applied, thanks.

Takashi

Quoted 14 lines
sound/atmel/ac97c.c +0 -1
index cf4cedf2b420..6dad042630d8 100644
@@ -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");