diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2014-09-09 16:57:46 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-09-11 15:27:36 -0400 |
commit | dbb30ebeefaf01121b32ae6b5baf29524f3a0b30 (patch) | |
tree | 42545fae45a0c5e1ca8ed5911459a870e9073d59 | |
parent | ea422b2c33c7bf253c5e64c82cfb68363cf40d3f (diff) |
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>
-rw-r--r-- | drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.c b/drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.c index 3119e8b1dc6f..0620b22192c4 100644 --- a/drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.c +++ b/drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.c | |||
@@ -497,7 +497,7 @@ static u32 halbtc_read_4byte(void *bt_context, u32 reg_addr) | |||
497 | return rtl_read_dword(rtlpriv, reg_addr); | 497 | return rtl_read_dword(rtlpriv, reg_addr); |
498 | } | 498 | } |
499 | 499 | ||
500 | static void halbtc_write_1byte(void *bt_context, u32 reg_addr, u8 data) | 500 | static void halbtc_write_1byte(void *bt_context, u32 reg_addr, u32 data) |
501 | { | 501 | { |
502 | struct btc_coexist *btcoexist = (struct btc_coexist *)bt_context; | 502 | struct btc_coexist *btcoexist = (struct btc_coexist *)bt_context; |
503 | struct rtl_priv *rtlpriv = btcoexist->adapter; | 503 | struct rtl_priv *rtlpriv = btcoexist->adapter; |
diff --git a/drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.h b/drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.h index eae19377c05c..0d185e61caab 100644 --- a/drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.h +++ b/drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.h | |||
@@ -359,7 +359,7 @@ typedef u16 (*bfp_btc_r2)(void *btc_context, u32 reg_addr); | |||
359 | 359 | ||
360 | typedef u32 (*bfp_btc_r4)(void *btc_context, u32 reg_addr); | 360 | typedef u32 (*bfp_btc_r4)(void *btc_context, u32 reg_addr); |
361 | 361 | ||
362 | typedef void (*bfp_btc_w1)(void *btc_context, u32 reg_addr, u8 data); | 362 | typedef void (*bfp_btc_w1)(void *btc_context, u32 reg_addr, u32 data); |
363 | 363 | ||
364 | typedef void (*bfp_btc_w1_bit_mak)(void *btc_context, u32 reg_addr, | 364 | typedef void (*bfp_btc_w1_bit_mak)(void *btc_context, u32 reg_addr, |
365 | u8 bit_mask, u8 data1b); | 365 | u8 bit_mask, u8 data1b); |