[2.5 patch] fix three OSS u16 comparisons

From: Adrian Bunk (bunk@fs.tum.de)
Date: Sat Jun 21 2003 - 19:01:03 EST


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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 23 2003 - 22:00:37 EST