rt2x00: correct sparse warning in rt2x00debug.c
authorJohn W. Linville <linville@tuxdriver.com>
Tue, 20 Jul 2010 18:21:48 +0000 (14:21 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 20 Jul 2010 20:49:41 +0000 (16:49 -0400)
  CHECK   drivers/net/wireless/rt2x00/rt2x00debug.c
drivers/net/wireless/rt2x00/rt2x00debug.c:193:28: warning: incorrect type in assignment (different base types)
drivers/net/wireless/rt2x00/rt2x00debug.c:193:28:    expected restricted __le32 [usertype] chip_rev
drivers/net/wireless/rt2x00/rt2x00debug.c:193:28:    got restricted __le16 [usertype] <noident>

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
drivers/net/wireless/rt2x00/rt2x00dump.h

index 6df2e0b..5d6e0b8 100644 (file)
@@ -116,7 +116,7 @@ struct rt2x00dump_hdr {
 
        __le16 chip_rt;
        __le16 chip_rf;
-       __le32 chip_rev;
+       __le16 chip_rev;
 
        __le16 type;
        __u8 queue_index;