]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ath5k: fix endianness of bitwise ops when installing mic
authorBob Copeland <me@bobcopeland.com>
Wed, 10 Dec 2008 04:05:38 +0000 (23:05 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 12 Dec 2008 19:02:04 +0000 (14:02 -0500)
commit388cdf31db6dfc3d175786a76989266380e12c26
treebf5b057f4b870e7de8200f077a28558e00d449e5
parent62d714e5ebec9ad4d63bb9a6da19dfd83d3db860
ath5k: fix endianness of bitwise ops when installing mic

Fix these bugs found by sparse:

    ath5k/pcu.c:1102:21: warning: restricted __le32 degrades to integer
    ath5k/pcu.c:1102:13: warning: incorrect type in assignment (different base types)
    ath5k/pcu.c:1102:13:    expected restricted __le32 <noident>
    ath5k/pcu.c:1102:13:    got unsigned int
    ath5k/pcu.c:1104:20: warning: restricted __le32 degrades to integer
    ath5k/pcu.c:1104:13: warning: incorrect type in assignment (different base types)
    ath5k/pcu.c:1104:13:    expected restricted __le32 <noident>
    ath5k/pcu.c:1104:13:    got unsigned int

Changes-licensed-under: ISC

Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath5k/pcu.c