mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
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>
This commit is contained in:
parent
29b4817d40
commit
fa54aade53
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue