From: John W. Linville Date: Tue, 20 Jul 2010 18:21:48 +0000 (-0400) Subject: rt2x00: correct sparse warning in rt2x00debug.c X-Git-Tag: firefly_0821_release~9833^2~1306^2~107^2~9 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=16124541321e3c4030973b34b3f013605f052679;p=firefly-linux-kernel-4.4.55.git rt2x00: correct sparse warning in rt2x00debug.c 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] Signed-off-by: John W. Linville Acked-by: Ivo van Doorn --- diff --git a/drivers/net/wireless/rt2x00/rt2x00dump.h b/drivers/net/wireless/rt2x00/rt2x00dump.h index 6df2e0b746b8..5d6e0b83151f 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dump.h +++ b/drivers/net/wireless/rt2x00/rt2x00dump.h @@ -116,7 +116,7 @@ struct rt2x00dump_hdr { __le16 chip_rt; __le16 chip_rf; - __le32 chip_rev; + __le16 chip_rev; __le16 type; __u8 queue_index;