summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8995.c
diff options
context:
space:
mode:
authorChristian Engelmayer <cengelma@gmx.at>2014-02-07 23:37:16 +0100
committerMark Brown <broonie@linaro.org>2014-02-11 12:28:27 +0000
commit8955f28dba9edb04305504a06d7f395ca3b32904 (patch)
tree26c3f5fc5cd72a084e399e049dfa91238352bab5 /sound/soc/codecs/wm8995.c
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
downloadlinux-8955f28dba9edb04305504a06d7f395ca3b32904.tar.bz2
ASoC: wm8995: Remove unused pointer in hp_supply_event()
Remove unused driver data pointer 'wm8995' in function hp_supply_event(). Detected by Coverity: CID 141181. Signed-off-by: Christian Engelmayer <cengelma@gmx.at> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/wm8995.c')
-rw-r--r--sound/soc/codecs/wm8995.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8995.c b/sound/soc/codecs/wm8995.c
index 4300caff1783..403e1db6870f 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: