All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Jarkko Nikula <jhnikula@gmail.com>
Cc: alsa-devel@alsa-project.org,
	Mark Brown <broonie@opensource.wolfsonmicro.com>,
	Peter Ujfalusi <peter.ujfalusi@nokia.com>,
	Liam Girdwood <lrg@slimlogic.co.uk>
Subject: Re: [PATCH] ASoC: tpa6130a2: Get rid of compile warning from tpa6130a2_power
Date: Wed, 03 Nov 2010 15:55:19 +0100	[thread overview]
Message-ID: <s5hhbfyqwx4.wl%tiwai@suse.de> (raw)
In-Reply-To: <1288795140-18563-1-git-send-email-jhnikula@gmail.com>

At Wed,  3 Nov 2010 16:39:00 +0200,
Jarkko Nikula wrote:
> 
> Patch "ASoC: tpa6130a2: Fix unbalanced regulator disables" introduced a
> compiler warning "‘ret’ may be used uninitialized in this function".
> Initialize ret to zero to get rid of it and making sure that the function
> does not return any random error code when the code is falling through.
> 
> Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>

Thanks!

Applied now directly to sound git tree as I'm going to send a pull
request soon later.

Mark, Liam, please pull back to your trees later on.


Takashi

> ---
>  sound/soc/codecs/tpa6130a2.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/sound/soc/codecs/tpa6130a2.c b/sound/soc/codecs/tpa6130a2.c
> index 83b5631..ee4fb20 100644
> --- a/sound/soc/codecs/tpa6130a2.c
> +++ b/sound/soc/codecs/tpa6130a2.c
> @@ -119,7 +119,7 @@ static int tpa6130a2_power(int power)
>  {
>  	struct	tpa6130a2_data *data;
>  	u8	val;
> -	int	ret;
> +	int	ret = 0;
>  
>  	BUG_ON(tpa6130a2_client == NULL);
>  	data = i2c_get_clientdata(tpa6130a2_client);
> -- 
> 1.7.2.3
> 
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

      reply	other threads:[~2010-11-03 14:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-28 11:05 [PATCH] ASoC: tpa6130a2: Fix unbalanced regulator disables Jarkko Nikula
2010-10-28 12:43 ` Peter Ujfalusi
2010-10-28 18:33 ` Mark Brown
2010-10-30 16:38   ` Liam Girdwood
2010-11-03 14:00 ` Takashi Iwai
2010-11-03 14:29   ` Jarkko Nikula
2010-11-03 14:39   ` [PATCH] ASoC: tpa6130a2: Get rid of compile warning from tpa6130a2_power Jarkko Nikula
2010-11-03 14:55     ` Takashi Iwai [this message]

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=s5hhbfyqwx4.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=jhnikula@gmail.com \
    --cc=lrg@slimlogic.co.uk \
    --cc=peter.ujfalusi@nokia.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.