2.4.36-stable kernel tree
Revision | 61592d6c077f418fe7b4986b75deecf79e9fb7fd (tree) |
---|---|
Zeit | 2008-09-07 18:29:26 |
Autor | Willy Tarreau <w@1wt....> |
Commiter | Willy Tarreau |
sound: fix warning due to incorrect error code checking in ad1889
ad1889.c: In function ad1889_ac97_init':
ad1889.c:857: warning: comparison is always false due to limited range of data type
This is caused by a short being compared against 0xFFFFFF while
0xFFFF was indeed expected. The missing device would just never
have been detected.
Signed-off-by: Willy Tarreau <w@1wt.eu>
@@ -854,7 +854,7 @@ static int ad1889_ac97_init(ad1889_dev_t *dev, int id) | ||
854 | 854 | } |
855 | 855 | |
856 | 856 | eid = ad1889_codec_read(ac97, AC97_EXTENDED_ID); |
857 | - if (eid == 0xffffff) { | |
857 | + if (eid == 0xffff) { | |
858 | 858 | printk(KERN_WARNING DEVNAME ": no codec attached?\n"); |
859 | 859 | goto out_free; |
860 | 860 | } |