Skip to contentSkip to conversation

ASoC: WM8985: Remove unneeded declaration.

PATCH Applied Dimitris Papastamos 3 participants 3 messages Sep 24, 2010

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

PATCH 1/1 ASoC: WM8985: Remove unneeded declaration.

We are not using the private data in this function, so get rid of it.

---
 sound/soc/codecs/wm8985.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
sound/soc/codecs/wm8985.c +0 -2
index 247585a..b94af96 100644
@@ -557,12 +557,10 @@ static int wm8985_dac_mute(struct snd_soc_dai *dai, int mute)
 
 static int wm8985_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 {
-	struct wm8985_priv *wm8985;
 	struct snd_soc_codec *codec;
 	u16 format, master, bcp, lrp;
 
 	codec = dai->codec;
-	wm8985 = snd_soc_codec_get_drvdata(codec);
 
 	switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
 	case SND_SOC_DAIFMT_I2S:
Signature · 1 line
1.7.3
Acked-by on v1 1/1
#1 lore raw
Quoted 14 lines · Dimitris Papastamos

We are not using the private data in this function, so get rid of it.

---
 sound/soc/codecs/wm8985.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
sound/soc/codecs/wm8985.c +0 -0
index 247585a..b94af96 100644
@@ -557,12 +557,10 @@ static int wm8985_dac_mute(struct snd_soc_dai *dai, int mute)
 
 static int wm8985_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)

sound/soc/codecs/wm8985.c static int wm8985_dac_mute(struct snd_soc_dai *dai, int mute) · line 566

Quoted 10 lines
sound/soc/codecs/wm8985.c +0 -2
 {
-	struct wm8985_priv *wm8985;
 	struct snd_soc_codec *codec;
 	u16 format, master, bcp, lrp;
 
 	codec = dai->codec;
-	wm8985 = snd_soc_codec_get_drvdata(codec);
 
 	switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
 	case SND_SOC_DAIFMT_I2S:
Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk