Skip to contentSkip to conversation

ASoC: Remove unused variables in wm9090.c

PATCH In review Axel Lin 2 participants 2 messages Dec 16, 2011

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: Remove unused variables in wm9090.c

Fix below build warnings:
CC sound/soc/codecs/wm9090.o
sound/soc/codecs/wm9090.c: In function 'wm9090_set_bias_level':
sound/soc/codecs/wm9090.c:496: warning: unused variable 'ret' sound/soc/codecs/wm9090.c:496: warning: unused variable 'i' sound/soc/codecs/wm9090.c:495: warning: unused variable 'reg_cache' sound/soc/codecs/wm9090.c: In function 'wm9090_i2c_remove':
sound/soc/codecs/wm9090.c:658: warning: unused variable 'wm9090'

---
 sound/soc/codecs/wm9090.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
sound/soc/codecs/wm9090.c +0 -5
index 41ebe0d..acac7d6 100644
@@ -492,9 +492,6 @@ static int wm9090_add_controls(struct snd_soc_codec *codec)
 static int wm9090_set_bias_level(struct snd_soc_codec *codec,
 				 enum snd_soc_bias_level level)
 {
-	u16 *reg_cache = codec->reg_cache;
-	int i, ret;
-
 	switch (level) {
 	case SND_SOC_BIAS_ON:
 		break;
@@ -655,8 +652,6 @@ static int wm9090_i2c_probe(struct i2c_client *i2c,
 
 static int __devexit wm9090_i2c_remove(struct i2c_client *i2c)
 {
-	struct wm9090_priv *wm9090 = i2c_get_clientdata(i2c);
-
 	snd_soc_unregister_codec(&i2c->dev);
 
 	return 0;
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 8 lines · Axel Lin

Fix below build warnings:
CC sound/soc/codecs/wm9090.o
sound/soc/codecs/wm9090.c: In function 'wm9090_set_bias_level':
sound/soc/codecs/wm9090.c:496: warning: unused variable 'ret' sound/soc/codecs/wm9090.c:496: warning: unused variable 'i' sound/soc/codecs/wm9090.c:495: warning: unused variable 'reg_cache' sound/soc/codecs/wm9090.c: In function 'wm9090_i2c_remove':
sound/soc/codecs/wm9090.c:658: warning: unused variable 'wm9090'

Future changes that need a bit more testing deal with all these.