Skip to content

Commit

Permalink
ASoC: wm2000: Fix return of uninitialised varible
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
charleskeepax authored and broonie committed Aug 11, 2016
1 parent 29b4817 commit fa54aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm2000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fa54aad

Please sign in to comment.