rtlwifi: btcoexist: Fix "always true" warning from commit ed364abffd6e
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 9 Sep 2014 20:57:46 +0000 (15:57 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 11 Sep 2014 19:27:36 +0000 (15:27 -0400)
commitdbb30ebeefaf01121b32ae6b5baf29524f3a0b30
tree42545fae45a0c5e1ca8ed5911459a870e9073d59
parentea422b2c33c7bf253c5e64c82cfb68363cf40d3f
rtlwifi: btcoexist: Fix "always true" warning from commit ed364abffd6e

The 0-DAY kernel build testing backend reports the following warning:
drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.c:516 halbtc_bitmask_write_1byte()
warn: always true condition '(bit_mask != 4294967295) => (0-255 != u32max)'

This problem was introduced in commit ed364abffd6e19bec67b7ccda8237213b8b37640,
and arises because the caller of halbtc_bitmask_write_1byte() is using a
u8 rather than a u32 for the data.

Reported-by: Kbuild test robot <kbuild-all@01.org>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Kbuild test robot <kbuild-all@01.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.c
drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.h