Skip to contentSkip to conversation

warning `comparison is always false due to limited range of data type'

PATCH New Paweł Sikora 1 participant 1 message Jul 8, 2004 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 warning `comparison is always false due to limited range of data type'

Signature · 4 lines
-- 
/* Copyright (C) 2003, SCO, Inc. This is valuable Intellectual Property. */

                           #define say(x) lie(x)

  CC [M]  sound/oss/ad1889.o
          sound/oss/ad1889.c: In function `ad1889_ac97_init':
          sound/oss/ad1889.c:854: warning: comparison is always false due to limited range of data type

sound/oss/ad1889.c renamed from sound/oss/ad1889.c.orig +1 -1
@@ -851,7 +851,7 @@
 	}
 
 	eid = ad1889_codec_read(ac97, AC97_EXTENDED_ID);
-	if (eid == 0xffffff) {
+	if (eid == 0xffff) {
 		printk(KERN_WARNING DEVNAME ": no codec attached?\n");
 		goto out_free;
 	}