Skip to content

Commit

Permalink
ASoC: wm8727: add a missing return in wm8727_platform_probe
Browse files Browse the repository at this point in the history
otherwise the error path will always be executed.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
AxelLin authored and broonie committed Jul 14, 2010
1 parent 6377278 commit c555b02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/soc/codecs/wm8727.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ static __devinit int wm8727_platform_probe(struct platform_device *pdev)
goto err_codec;
}

return 0;

err_codec:
snd_soc_unregister_codec(codec);
err:
Expand Down

0 comments on commit c555b02

Please sign in to comment.