alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] wm8940: remove unecessary if statement
@ 2011-06-06  0:47 Greg Dietsche
  2011-06-06  9:31 ` Jonathan Cameron
  0 siblings, 1 reply; 10+ messages in thread
From: Greg Dietsche @ 2011-06-06  0:47 UTC (permalink / raw)
  To: perex, tiwai; +Cc: broonie, dp, lrg, alsa-devel, linux-kernel, Greg Dietsche

the code always returns ret regardless, so if(ret) check is unecessary.

Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
---
 sound/soc/codecs/wm8940.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/sound/soc/codecs/wm8940.c b/sound/soc/codecs/wm8940.c
index 25580e3..1ada6d3 100644
--- a/sound/soc/codecs/wm8940.c
+++ b/sound/soc/codecs/wm8940.c
@@ -730,9 +730,6 @@ static int wm8940_probe(struct snd_soc_codec *codec)
 	if (ret)
 		return ret;
 	ret = wm8940_add_widgets(codec);
-	if (ret)
-		return ret;
-
 	return ret;
 }
 
-- 
1.7.2.5

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

end of thread, other threads:[~2011-06-07  8:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-06  0:47 [PATCH] wm8940: remove unecessary if statement Greg Dietsche
2011-06-06  9:31 ` Jonathan Cameron
2011-06-06  9:51   ` Liam Girdwood
2011-06-06 20:53     ` [PATCH v2] wm8940: remove unnecessary if statements Greg Dietsche
2011-06-07  8:01       ` Jonathan Cameron
2011-06-07  8:33       ` Liam Girdwood
2011-06-07  8:48       ` Mark Brown
2011-06-06 12:45   ` [PATCH] wm8940: remove unecessary if statement Greg Dietsche
2011-06-06 13:05     ` Jonathan Cameron
2011-06-06 20:58       ` Greg Dietsche

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).