Skip to contentSkip to conversation

ac97_codec: make bitfield unsigned

PATCH New Randy.Dunlap 1 participant 1 message Jun 28, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ac97_codec: make bitfield unsigned

From: Randy Dunlap <[email protected]>

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

---
 include/linux/ac97_codec.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
include/linux/ac97_codec.h +1 -1
@@ -259,7 +259,7 @@ struct ac97_codec {
 	int type;
 	u32 model;
 
-	int modem:1;
+	unsigned int modem:1;
 
 	struct ac97_ops *codec_ops;
 

---