alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Fabio Estevam <festevam@gmail.com>
To: alsa-devel@alsa-project.org
Cc: Fabio Estevam <fabio.estevam@freescale.com>,
	broonie@opensource.wolfsonmicro.com,
	Fabio Estevam <festevam@gmail.com>
Subject: [PATCH] ASoC: codecs: wm9090: Fix build warnings due to unused variables
Date: Thu, 12 Jan 2012 23:55:59 -0200	[thread overview]
Message-ID: <1326419759-14853-1-git-send-email-festevam@gmail.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1306 bytes --]

Fix the following build warnings:

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: Fabio Estevam <fabio.estevam@freescale.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.1


[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



             reply	other threads:[~2012-01-13  1:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-13  1:55 Fabio Estevam [this message]
2012-01-13  2:01 ` [PATCH] ASoC: codecs: wm9090: Fix build warnings due to unused variables Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1326419759-14853-1-git-send-email-festevam@gmail.com \
    --to=festevam@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=fabio.estevam@freescale.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).