[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1279105051.2290.5.camel@phoenix>
Date: Wed, 14 Jul 2010 18:57:31 +0800
From: Axel Lin <axel.lin@...il.com>
To: linux-kernel <linux-kernel@...r.kernel.org>
Cc: Liam Girdwood <lrg@...mlogic.co.uk>,
Mark Brown <broonie@...nsource.wolfsonmicro.com>,
Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.de>,
Tejun Heo <tj@...nel.org>, Neil Jones <neil.jones@...tec.com>,
alsa-devel@...a-project.org
Subject: [PATCH] wm8727: add a missing return in wm8727_platform_probe
otherwise the error path will always be executed.
Signed-off-by: Axel Lin <axel.lin@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists