Commit 2713346c authored by Pawel Sikora's avatar Pawel Sikora Committed by Linus Torvalds

[PATCH] ad1889 warning fix

  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
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e6002df8
...@@ -851,7 +851,7 @@ static int ad1889_ac97_init(ad1889_dev_t *dev, int id) ...@@ -851,7 +851,7 @@ static int ad1889_ac97_init(ad1889_dev_t *dev, int id)
} }
eid = ad1889_codec_read(ac97, AC97_EXTENDED_ID); eid = ad1889_codec_read(ac97, AC97_EXTENDED_ID);
if (eid == 0xffffff) { if (eid == 0xffff) {
printk(KERN_WARNING DEVNAME ": no codec attached?\n"); printk(KERN_WARNING DEVNAME ": no codec attached?\n");
goto out_free; goto out_free;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment