alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] wm8727: add a missing return in wm8727_platform_probe
@ 2010-07-14 10:57 Axel Lin
  2010-07-14 14:59 ` Liam Girdwood
  0 siblings, 1 reply; 3+ messages in thread
From: Axel Lin @ 2010-07-14 10:57 UTC (permalink / raw)
  To: linux-kernel
  Cc: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Tejun Heo, Neil Jones, alsa-devel

otherwise the error path will always be executed.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 sound/soc/codecs/wm8727.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/sound/soc/codecs/wm8727.c b/sound/soc/codecs/wm8727.c
index 1072621..9d1df26 100644
--- a/sound/soc/codecs/wm8727.c
+++ b/sound/soc/codecs/wm8727.c
@@ -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:
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-07-14 19:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-14 10:57 [PATCH] wm8727: add a missing return in wm8727_platform_probe Axel Lin
2010-07-14 14:59 ` Liam Girdwood
2010-07-14 19:26   ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).