]> Git Repo - linux.git/commitdiff
ASoC: wm2000: Fix return of uninitialised varible
authorCharles Keepax <[email protected]>
Thu, 11 Aug 2016 13:40:04 +0000 (14:40 +0100)
committerMark Brown <[email protected]>
Thu, 11 Aug 2016 14:01:02 +0000 (15:01 +0100)
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/codecs/wm2000.c

index a67ea10f41a1adce51e3625986e1170904429837..f2664396be6fd752c3fa62f398a6e2e1857eef91 100644 (file)
@@ -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)
This page took 0.060342 seconds and 4 git commands to generate.