From: Takashi Iwai <tiwai@suse.de>
To: "Helen Koike" <helen.koike@collabora.co.uk>
Cc: <alsa-devel@alsa-project.org>, <trivial@kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ALSA: hda - Remove compilation warning
Date: Tue, 21 Jun 2016 07:49:26 +0200 [thread overview]
Message-ID: <s5hporbxfa1.wl-tiwai@suse.de> (raw)
In-Reply-To: <1466451751-8013-1-git-send-email-helen.koike@collabora.co.uk>
On Mon, 20 Jun 2016 21:42:31 +0200,
Helen Koike wrote:
>
> Remove the warning:
> warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized]
It's a false positive, a compiler problem.
Takashi
>
> Signed-off-by: Helen Koike <helen.koike@collabora.co.uk>
> ---
> sound/hda/hdac_regmap.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/hda/hdac_regmap.c b/sound/hda/hdac_regmap.c
> index 87041dd..7be6ca1 100644
> --- a/sound/hda/hdac_regmap.c
> +++ b/sound/hda/hdac_regmap.c
> @@ -279,7 +279,7 @@ static int hda_reg_write(void *context, unsigned int reg, unsigned int val)
> {
> struct hdac_device *codec = context;
> unsigned int verb;
> - int i, bytes, err;
> + int i, bytes, err = 0;
> int pm_lock = 0;
>
> if (codec->caps_overwriting)
> --
> 1.9.1
>
>
prev parent reply other threads:[~2016-06-21 5:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-20 19:42 Helen Koike
2016-06-21 5:49 ` 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=s5hporbxfa1.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=helen.koike@collabora.co.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@kernel.org \
/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
all inboxes | Powered by JetHome®