ASoC: SAMSUNG: Fix initial return value
Subsystems (3)
PATCH 1/2 ASoC: SAMSUNG: Fix initial return value
This patch fixed intial return value to be a '0' as asuccess on set_audio_clock_heirachy(). This avoids unintended error on initialize.
--- sound/soc/samsung/smdk_spdif.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/samsung/smdk_spdif.c +1 -1
@@ -28,7 +28,7 @@static int set_audio_clock_heirachy (struct platform_device *pdev) {struct clk *fout_epll, *mout_epll, *sclk_audio0, *sclk_spdif; -int ret; +int ret =0 ; fout_epll =clk_get (NULL ,"fout_epll" );if (IS_ERR (fout_epll)) {
Signature · 1 line
1.6.2.5
Quoted 9 lines · Seungwhan Youn
This patch fixed intial return value to be a '0' as asuccess on
set_audio_clock_heirachy(). This avoids unintended error on initialize.{
struct clk*fout_epll,*mout_epll,*sclk_audio0,*sclk_spdif;
- int ret;
+ int ret = 0;
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 13 lines · Seungwhan Youn
This patch fixed intial return value to be a '0' as asuccess on
set_audio_clock_heirachy(). This avoids unintended error on initialize.Signed-off-by Seungwhan Youn <[email protected]>--- sound/soc/samsung/smdk_spdif.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)sound/soc/samsung/smdk_spdif.c +0
-0
sound/soc/samsung/smdk_spdif.c line 34
Quoted 8 lines
sound/soc/samsung/smdk_spdif.c +1
-1@@ -28,7 +28,7 @@static int set_audio_clock_heirachy (struct platform_device *pdev) {struct clk *fout_epll, *mout_epll, *sclk_audio0, *sclk_spdif; -int ret; +int ret =0 ; fout_epll =clk_get (NULL ,"fout_epll" );if (IS_ERR (fout_epll)) {
Both
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk
Mark Brown
AppliedQuoted 3 lines · Liam Girdwood
Both
Acked-by Liam Girdwood <[email protected]>
Applied, thanks.