All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: Remove unused variables in wm9090.c
@ 2011-12-16  7:49 Axel Lin
  2011-12-16 12:54 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2011-12-16  7:49 UTC (permalink / raw)
  To: alsa-devel; +Cc: Mark Brown, Liam Girdwood

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'

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 sound/soc/codecs/wm9090.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/sound/soc/codecs/wm9090.c b/sound/soc/codecs/wm9090.c
index 41ebe0d..acac7d6 100644
--- a/sound/soc/codecs/wm9090.c
+++ b/sound/soc/codecs/wm9090.c
@@ -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;
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: Remove unused variables in wm9090.c
  2011-12-16  7:49 [PATCH] ASoC: Remove unused variables in wm9090.c Axel Lin
@ 2011-12-16 12:54 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2011-12-16 12:54 UTC (permalink / raw)
  To: Axel Lin; +Cc: alsa-devel, Liam Girdwood

On Fri, Dec 16, 2011 at 03:49:10PM +0800, Axel Lin wrote:
> 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-16 12:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-16  7:49 [PATCH] ASoC: Remove unused variables in wm9090.c Axel Lin
2011-12-16 12:54 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.