diff options
author | Christian Engelmayer <cengelma@gmx.at> | 2014-06-13 13:19:28 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-17 10:40:37 -0400 |
commit | 7eced3ec080d7868715f8af4628c36726ef913e7 (patch) | |
tree | b8355465d130156148a013724733f670affbf339 /sound/soc/codecs | |
parent | 7171511eaec5bf23fb06078f59784a3a0626b38f (diff) |
ASoC: wm8985: Remove unused pointer in wm8985_remove()
Commit a0b148b4 (ASoC: wm8985: Use devm_regulator_bulk_get()) removed the last
user of pointer wm8985 to struct wm8985_priv. Thus remove it. Detected by
Coverity CID 1222150.
Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r-- | sound/soc/codecs/wm8985.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm8985.c b/sound/soc/codecs/wm8985.c index 0f5780c09f3a..cbbdfbbd0a9f 100644 --- a/sound/soc/codecs/wm8985.c +++ b/sound/soc/codecs/wm8985.c | |||
@@ -980,9 +980,6 @@ static int wm8985_resume(struct snd_soc_codec *codec) | |||
980 | 980 | ||
981 | static int wm8985_remove(struct snd_soc_codec *codec) | 981 | static int wm8985_remove(struct snd_soc_codec *codec) |
982 | { | 982 | { |
983 | struct wm8985_priv *wm8985; | ||
984 | |||
985 | wm8985 = snd_soc_codec_get_drvdata(codec); | ||
986 | wm8985_set_bias_level(codec, SND_SOC_BIAS_OFF); | 983 | wm8985_set_bias_level(codec, SND_SOC_BIAS_OFF); |
987 | return 0; | 984 | return 0; |
988 | } | 985 | } |