]> err.no Git - linux-2.6/commitdiff
[PATCH] ac97_codec: make bitfield unsigned
authorRandy Dunlap <rdunlap@xenotime.net>
Wed, 28 Jun 2006 11:26:57 +0000 (04:26 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 28 Jun 2006 21:59:06 +0000 (14:59 -0700)
Make a 1-bit bitfield unsigned (no space for sign bit).
Removes 24 sparse warnings from this one file:
include/linux/ac97_codec.h:262:13: error: dubious one-bit signed bitfield

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/ac97_codec.h

index c35833824e118d8f9012542647f4f96ba95fb3d7..2ed2fd855133cba6d445a4babdb213e4eb4b2f75 100644 (file)
@@ -259,7 +259,7 @@ struct ac97_codec {
        int type;
        u32 model;
 
-       int modem:1;
+       unsigned int modem:1;
 
        struct ac97_ops *codec_ops;