[PATCH] warning `comparison is always false due to limited range of data type'
From: Paweł Sikora
Date: Thu Jul 08 2004 - 08:19:31 EST
--
/* 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
--- linux-2.6.7/sound/oss/ad1889.c.orig 2004-06-16 07:19:12.000000000 +0200
+++ linux-2.6.7/sound/oss/ad1889.c 2004-07-08 14:36:04.048339480 +0200
@@ -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;
}