From: Christian Engelmayer <cengelma@gmx.at>
To: Mark Brown <broonie@linaro.org>
Cc: alsa-devel@alsa-project.org
Subject: [PATCH] SoC: wm8991: Remove unused pointer in wm8991_probe()
Date: Tue, 4 Feb 2014 21:20:59 +0100 [thread overview]
Message-ID: <20140204212059.51b9a904@spike> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 881 bytes --]
Remove unused pointer 'wm8991' in function wm8991_probe(). The last user
vanished with a86652e5 (ASoC: wm8991: Convert to direct regmap API usage)
Detected by Coverity: CID 1162831
Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
---
sound/soc/codecs/wm8991.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/sound/soc/codecs/wm8991.c b/sound/soc/codecs/wm8991.c
index dba0306..244eb09 100644
--- a/sound/soc/codecs/wm8991.c
+++ b/sound/soc/codecs/wm8991.c
@@ -1251,11 +1251,8 @@ static int wm8991_remove(struct snd_soc_codec *codec)
static int wm8991_probe(struct snd_soc_codec *codec)
{
- struct wm8991_priv *wm8991;
int ret;
- wm8991 = snd_soc_codec_get_drvdata(codec);
-
ret = snd_soc_codec_set_cache_io(codec, 8, 16, SND_SOC_REGMAP);
if (ret < 0) {
dev_err(codec->dev, "Failed to set cache i/o: %d\n", ret);
--
1.8.3.2
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
next reply other threads:[~2014-02-04 20:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-04 20:20 Christian Engelmayer [this message]
2014-02-07 13:39 ` [PATCH] SoC: wm8991: Remove unused pointer in wm8991_probe() Mark Brown
2014-02-07 18:43 ` [PATCH v2] ASoC: " Christian Engelmayer
2014-02-07 20:51 ` 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=20140204212059.51b9a904@spike \
--to=cengelma@gmx.at \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@linaro.org \
/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 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.