projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38dbfb5
)
ASoC: wm8995: Remove unused pointer in hp_supply_event()
author
Christian Engelmayer
<cengelma@gmx.at>
Fri, 7 Feb 2014 22:37:16 +0000
(23:37 +0100)
committer
Mark Brown
<broonie@linaro.org>
Tue, 11 Feb 2014 12:28:27 +0000
(12:28 +0000)
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>
sound/soc/codecs/wm8995.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/wm8995.c
b/sound/soc/codecs/wm8995.c
index 4300caff17838b59d195ba629b1e0c94b3eb3574..403e1db6870f4bb4be853ec04000ddc632bbc3e4 100644
(file)
--- 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: