Skip to content

Commit

Permalink
ASoC: wm8993: Remove unused pointer in wm8993_remove()
Browse files Browse the repository at this point in the history
Commit 88b5bdf (ASoC: wm8993: drop regulator_bulk_free of devm_ allocated
data) eliminated the last user of driver data pointer 'wm8993' in function
wm8993_remove() - Thus remove it. Detected by Coverity: CID 1186208.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Christian Engelmayer authored and Mark Brown committed Feb 25, 2014
1 parent 2d07561 commit 180c275
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sound/soc/codecs/wm8993.c
Original file line number Diff line number Diff line change
Expand Up @@ -1559,8 +1559,6 @@ static int wm8993_probe(struct snd_soc_codec *codec)

static int wm8993_remove(struct snd_soc_codec *codec)
{
struct wm8993_priv *wm8993 = snd_soc_codec_get_drvdata(codec);

wm8993_set_bias_level(codec, SND_SOC_BIAS_OFF);
return 0;
}
Expand Down

0 comments on commit 180c275

Please sign in to comment.