From: Robert Love <rml@tech9.net>
To: linux-kernel@vger.kernel.org
Subject: [patch] used but uninitialized variable in ac97_codec
Date: 12 Feb 2003 01:29:11 -0500 [thread overview]
Message-ID: <1045031351.786.92.camel@phantasy> (raw)
As far as I can tell, nothing initializes `err' prior to the
snd_printk() that uses it. It is used later on, however.
So just do not print it out here.
Patch is against 2.5.60.
Robert Love
sound/pci/ac97/ac97_codec.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -urN linux-2.5.60/sound/pci/ac97/ac97_codec.c linux/sound/pci/ac97/ac97_codec.c
--- linux-2.5.60/sound/pci/ac97/ac97_codec.c 2003-02-10 13:38:19.000000000 -0500
+++ linux/sound/pci/ac97/ac97_codec.c 2003-02-12 00:46:51.000000000 -0500
@@ -1887,7 +1887,7 @@
udelay(50);
if (ac97_reset_wait(ac97, HZ/2, 0) < 0 &&
ac97_reset_wait(ac97, HZ/2, 1) < 0) {
- snd_printk("AC'97 %d:%d does not respond - RESET [REC_GAIN = 0x%x]\n", ac97->num, ac97->addr, err);
+ snd_printk("AC'97 %d:%d does not respond - RESET\n", ac97->num, ac97->addr);
snd_ac97_free(ac97);
return -ENXIO;
}
reply other threads:[~2003-02-12 6:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1045031351.786.92.camel@phantasy \
--to=rml@tech9.net \
--cc=linux-kernel@vger.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