From: Jerry Snitselaar Date: Fri, 10 Aug 2012 06:16:26 +0000 (-0700) Subject: ASoC: core: remove unused variable in soc_probe() in linux-next X-Git-Tag: firefly_0821_release~3680^2~1589^2~52^2~174 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3876566a368b30908ec4195d58f04a411f22f736;p=firefly-linux-kernel-4.4.55.git ASoC: core: remove unused variable in soc_probe() in linux-next With commit 28d528c8 "ASoC: core: Remove pointless error on card registration failure", the variable ret is no longer used in soc_probe() and generates an unused variable warning during a build. Signed-off-by: Jerry Snitselaar Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 3a43fa6ba2ee..f585d0239551 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1814,7 +1814,6 @@ base_error: static int soc_probe(struct platform_device *pdev) { struct snd_soc_card *card = platform_get_drvdata(pdev); - int ret = 0; /* * no card, so machine driver should be registering card