alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: core: remove unused variable in soc_probe() in linux-next
@ 2012-08-10  6:16 Jerry Snitselaar
  2012-08-10 16:57 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Jerry Snitselaar @ 2012-08-10  6:16 UTC (permalink / raw)
  To: linux-kernel; +Cc: alsa-devel, broonie, perex, tiwai

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 <dev@snitselaar.org>
---
 sound/soc/soc-core.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 2d98ffc..7adf115 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -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
-- 
1.7.12.rc1.17.g9a7365c

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

* Re: [PATCH] ASoC: core: remove unused variable in soc_probe() in linux-next
  2012-08-10  6:16 [PATCH] ASoC: core: remove unused variable in soc_probe() in linux-next Jerry Snitselaar
@ 2012-08-10 16:57 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2012-08-10 16:57 UTC (permalink / raw)
  To: Jerry Snitselaar; +Cc: tiwai, alsa-devel, linux-kernel

On Thu, Aug 09, 2012 at 11:16:26PM -0700, Jerry Snitselaar wrote:
> 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.

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

end of thread, other threads:[~2012-08-10 16:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-10  6:16 [PATCH] ASoC: core: remove unused variable in soc_probe() in linux-next Jerry Snitselaar
2012-08-10 16:57 ` 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).