summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2016-08-11 14:40:04 +0100
committerMark Brown <broonie@kernel.org>2016-08-11 15:01:02 +0100
commitfa54aade5338937146bb6b8af93d2c27f6787ae1 (patch)
tree2339610610678087bb491cf35c61a8b708fc0689 /sound
parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
downloadlinux-stable-fa54aade5338937146bb6b8af93d2c27f6787ae1.tar.gz
linux-stable-fa54aade5338937146bb6b8af93d2c27f6787ae1.tar.bz2
linux-stable-fa54aade5338937146bb6b8af93d2c27f6787ae1.zip
ASoC: wm2000: Fix return of uninitialised varible
Anything that sets ret in wm2000_anc_transition will have immediately returned anyway as such we will always return an uninitialised ret at the bottom of the function. Simply replace the return with a return 0; Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm2000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm2000.c b/sound/soc/codecs/wm2000.c
index a67ea10f41a1..f2664396be6f 100644
--- a/sound/soc/codecs/wm2000.c
+++ b/sound/soc/codecs/wm2000.c
@@ -581,7 +581,7 @@ static int wm2000_anc_transition(struct wm2000_priv *wm2000,
if (anc_transitions[i].dest == ANC_OFF)
clk_disable_unprepare(wm2000->mclk);
- return ret;
+ return 0;
}
static int wm2000_anc_set_mode(struct wm2000_priv *wm2000)