Skip to contentSkip to conversation

fix three OSS u16 comparisons

PATCH New Adrian Bunk 1 participant 1 message Jun 21, 2003 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix three OSS u16 comparisons

The patch below fixed three OSS drivers that compared an u16 with 0xFFFFFF ...

cu
Adrian

sound/oss/ymfpci.c renamed from sound/oss/ymfpci.c.old +1 -1
@@ -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;
 	}
sound/oss/i810_audio.c renamed from sound/oss/i810_audio.c.old +1 -1
@@ -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);
sound/oss/cs46xx.c renamed from sound/oss/cs46xx.c.old +1 -1
@@ -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);