Skip to content

Commit

Permalink
ASoC: wm8985: Remove unused pointer in wm8985_remove()
Browse files Browse the repository at this point in the history
Commit a0b148b (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>
  • Loading branch information
Christian Engelmayer authored and Mark Brown committed Jun 17, 2014
1 parent 7171511 commit 7eced3e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sound/soc/codecs/wm8985.c
Original file line number Diff line number Diff line change
Expand Up @@ -980,9 +980,6 @@ static int wm8985_resume(struct snd_soc_codec *codec)

static int wm8985_remove(struct snd_soc_codec *codec)
{
struct wm8985_priv *wm8985;

wm8985 = snd_soc_codec_get_drvdata(codec);
wm8985_set_bias_level(codec, SND_SOC_BIAS_OFF);
return 0;
}
Expand Down

0 comments on commit 7eced3e

Please sign in to comment.