From: Jonathan Cameron <jic23@cam.ac.uk>
To: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Cc: dp@opensource.wolfsonmicro.com, alsa-devel@alsa-project.org,
tiwai@suse.de, broonie@opensource.wolfsonmicro.com, lrg@ti.com
Subject: Re: [PATCH v2] wm8940: remove unnecessary if statements
Date: Tue, 07 Jun 2011 09:01:14 +0100 [thread overview]
Message-ID: <4DEDDACA.6040403@cam.ac.uk> (raw)
In-Reply-To: <1307393581-25202-1-git-send-email-Gregory.Dietsche@cuw.edu>
On 06/06/11 21:53, Greg Dietsche wrote:
> removing unnecessary if(ret) checks
>
> This updated patch corrects a minor spelling problem in the commit message
> and resolves two other (similar) issues found in wm8940.c by Jonathan Cameron.
>
Thanks
> Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
> ---
> sound/soc/codecs/wm8940.c | 7 -------
> 1 files changed, 0 insertions(+), 7 deletions(-)
>
> diff --git a/sound/soc/codecs/wm8940.c b/sound/soc/codecs/wm8940.c
> index 25580e3..056daa0 100644
> --- a/sound/soc/codecs/wm8940.c
> +++ b/sound/soc/codecs/wm8940.c
> @@ -297,8 +297,6 @@ static int wm8940_add_widgets(struct snd_soc_codec *codec)
> if (ret)
> goto error_ret;
> ret = snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
> - if (ret)
> - goto error_ret;
>
> error_ret:
> return ret;
> @@ -683,8 +681,6 @@ static int wm8940_resume(struct snd_soc_codec *codec)
> }
> }
> ret = wm8940_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
> - if (ret)
> - goto error_ret;
>
> error_ret:
> return ret;
> @@ -730,9 +726,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;
> }
>
next prev parent reply other threads:[~2011-06-07 7:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DEDDACA.6040403@cam.ac.uk \
--to=jic23@cam.ac.uk \
--cc=Gregory.Dietsche@cuw.edu \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=dp@opensource.wolfsonmicro.com \
--cc=lrg@ti.com \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).