Skip to contentSkip to conversation

ASoC: SAMSUNG: Fix initial return value

PATCH Applied Seungwhan Youn 4 participants 4 messages Dec 5, 2010 – Dec 6, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
index ca779ad..56d058d 100644
@@ -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
Acked-by on v1 1/2
#1 lore raw
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

Acked-by on v1 1/2
#2 lore raw
In reply to Seungwhan Youn
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.

---
 sound/soc/samsung/smdk_spdif.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/samsung/smdk_spdif.c +0 -0
index ca779ad..56d058d 100644

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