From: Christian Engelmayer Date: Fri, 7 Feb 2014 22:37:16 +0000 (+0100) Subject: ASoC: wm8995: Remove unused pointer in hp_supply_event() X-Git-Tag: firefly_0821_release~176^2~4090^2~1^2~5^2~12^2~12^8~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8955f28dba9edb04305504a06d7f395ca3b32904;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Mark Brown --- 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: