Skip to contentSkip to conversation

ASoC: core: remove unused variable in soc_probe() in linux-next

PATCH Applied Jerry Snitselaar 2 participants 2 messages Aug 10, 2012

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

PATCH 1/1 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.

---
 sound/soc/soc-core.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/soc-core.c +0 -1
index 2d98ffc..7adf115 100644
@@ -1816,7 +1816,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
Signature · 1 line
1.7.12.rc1.17.g9a7365c
Applied
#1 lore raw
Quoted 3 lines · Jerry Snitselaar

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.

Applied, thanks.