From: Michael Hennerich Date: Tue, 18 Nov 2008 08:18:19 +0000 (+0800) Subject: ASoC: Fix Blackfin AC97 DAI probe function return code X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0cade26e366549adcf211f67200b2934c8220f05;p=linux-beck.git ASoC: Fix Blackfin AC97 DAI probe function return code A probe function should have a clean return 0 path. Cc: Cliff Cai Signed-off-by: Michael Hennerich Signed-off-by: Bryan Wu Signed-off-by: Mark Brown --- diff --git a/sound/soc/blackfin/bf5xx-ac97.c b/sound/soc/blackfin/bf5xx-ac97.c index 65c162c4bfad..5dcd3f665ab1 100644 --- a/sound/soc/blackfin/bf5xx-ac97.c +++ b/sound/soc/blackfin/bf5xx-ac97.c @@ -378,6 +378,8 @@ static int bf5xx_ac97_probe(struct platform_device *pdev, goto sport_config_err; } + return 0; + sport_config_err: kfree(sport_handle); sport_err: