[alsa-devel] [PATCH] ASoC: wm8995: Remove unused pointer in hp_supply_event()

Christian Engelmayer cengelma at gmx.at
Fri Feb 7 23:37:16 CET 2014


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

Detected by Coverity: CID 141181.

Signed-off-by: Christian Engelmayer <cengelma at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20140207/259ab880/attachment.sig>


More information about the Alsa-devel mailing list