wm8727: add a missing return in wm8727_platform_probe
Subsystems (3)
PATCH 1/1 wm8727: add a missing return in wm8727_platform_probe
otherwise the error path will always be executed.
Signed-off-by Axel Lin <[email protected]>
--- sound/soc/codecs/wm8727.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
sound/soc/codecs/wm8727.c +2 -0
@@ -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:
Signature · 1 line
1.7.0.4
Quoted 12 lines · Axel Lin
otherwise the error path will always be executed.
Signed-off-by Axel Lin <[email protected]>--- sound/soc/codecs/wm8727.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)sound/soc/codecs/wm8727.c +0
-0
sound/soc/codecs/wm8727.c static __devinit int wm8727_platform_probe(struct platform_device *pdev) · line 134
Quoted 8 lines
sound/soc/codecs/wm8727.c +2
-0@@ -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:
Both
Acked-by Liam Girdwood <[email protected]>
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk
Quoted 6 lines · Liam Girdwood
Quoted 1 line · Axel Lin
otherwise the error path will always be executed.
Both
Acked-by Liam Girdwood <[email protected]>
...and applied, thanks.