Commit 976fa9a3 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Takashi Iwai

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.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarAlexander Stein <alexanders83@web.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent fa94b0d7
...@@ -916,7 +916,6 @@ static struct ac97c_platform_data *atmel_ac97c_probe_dt(struct device *dev) ...@@ -916,7 +916,6 @@ static struct ac97c_platform_data *atmel_ac97c_probe_dt(struct device *dev)
{ {
struct ac97c_platform_data *pdata; struct ac97c_platform_data *pdata;
struct device_node *node = dev->of_node; struct device_node *node = dev->of_node;
const struct of_device_id *match;
if (!node) { if (!node) {
dev_err(dev, "Device does not have associated DT data\n"); dev_err(dev, "Device does not have associated DT data\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment