All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: wm8995: Remove unused pointer in hp_supply_event()
@ 2014-02-07 22:37 Christian Engelmayer
  2014-02-11 12:28 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Engelmayer @ 2014-02-07 22:37 UTC (permalink / raw)
  To: Mark Brown
  Cc: Dimitris Papastamos, Fabio Estevam, alsa-devel,
	Lars-Peter Clausen, patches, Liam Girdwood


[-- Attachment #1.1: Type: text/plain, Size: 870 bytes --]

Remove unused driver data pointer 'wm8995' in function hp_supply_event().

Detected by Coverity: CID 141181.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
---
Applies against v3.14-rc1 as well as branch for-next in tree
git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git.
---
 sound/soc/codecs/wm8995.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sound/soc/codecs/wm8995.c b/sound/soc/codecs/wm8995.c
index 4300caf..403e1db 100644
--- a/sound/soc/codecs/wm8995.c
+++ b/sound/soc/codecs/wm8995.c
@@ -561,10 +561,8 @@ static int hp_supply_event(struct snd_soc_dapm_widget *w,
 			   struct snd_kcontrol *kcontrol, int event)
 {
 	struct snd_soc_codec *codec;
-	struct wm8995_priv *wm8995;
 
 	codec = w->codec;
-	wm8995 = snd_soc_codec_get_drvdata(codec);
 
 	switch (event) {
 	case SND_SOC_DAPM_PRE_PMU:
-- 
1.8.3.2

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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



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

end of thread, other threads:[~2014-02-11 12:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-07 22:37 [PATCH] ASoC: wm8995: Remove unused pointer in hp_supply_event() Christian Engelmayer
2014-02-11 12:28 ` 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.