From: Adrian Bunk <bunk@fs.tum.de>
To: linux-kernel@vger.kernel.org
Cc: trivial@rustcorp.com.au
Subject: [2.5 patch] fix three OSS u16 comparisons
Date: Sun, 22 Jun 2003 02:01:03 +0200 [thread overview]
Message-ID: <20030622000103.GK23337@fs.tum.de> (raw)
The patch below fixed three OSS drivers that compared an u16 with
0xFFFFFF ...
cu
Adrian
--- linux-2.5.72-mm2/sound/oss/ymfpci.c.old 2003-06-22 01:19:52.000000000 +0200
+++ linux-2.5.72-mm2/sound/oss/ymfpci.c 2003-06-22 01:20:12.000000000 +0200
@@ -2462,7 +2462,7 @@
}
eid = ymfpci_codec_read(codec, AC97_EXTENDED_ID);
- if (eid==0xFFFFFF) {
+ if (eid==0xFFFF) {
printk(KERN_WARNING "ymfpci: no codec attached ?\n");
goto out_kfree;
}
--- linux-2.5.72-mm2/sound/oss/i810_audio.c.old 2003-06-22 01:20:41.000000000 +0200
+++ linux-2.5.72-mm2/sound/oss/i810_audio.c 2003-06-22 01:21:09.000000000 +0200
@@ -2922,7 +2922,7 @@
/* Don't attempt to get eid until powerup is complete */
eid = i810_ac97_get(codec, AC97_EXTENDED_ID);
- if(eid==0xFFFFFF)
+ if(eid==0xFFFF)
{
printk(KERN_WARNING "i810_audio: no codec attached ?\n");
kfree(codec);
--- linux-2.5.72-mm2/sound/oss/cs46xx.c.old 2003-06-22 01:22:06.000000000 +0200
+++ linux-2.5.72-mm2/sound/oss/cs46xx.c 2003-06-22 01:23:32.000000000 +0200
@@ -4269,7 +4269,7 @@
eid = cs_ac97_get(codec, AC97_EXTENDED_ID);
- if(eid==0xFFFFFF)
+ if(eid==0xFFFF)
{
printk(KERN_WARNING "cs46xx: codec %d not present\n",num_ac97);
kfree(codec);
reply other threads:[~2003-06-21 23:47 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=20030622000103.GK23337@fs.tum.de \
--to=bunk@fs.tum.de \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@rustcorp.com.au \
/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®