From 9e245f41d449cd3009d7717662bfaded05bcae1d Mon Sep 17 00:00:00 2001 From: Himangi Saraogi Date: Sun, 16 Mar 2014 23:55:00 +0530 Subject: [PATCH] staging:rtl8821ae: Fix sparse warnings of cast truncates bits from constant value This patch fixes the following sparse warnings: drivers/staging/rtl8821ae/rtl8821ae/phy.c:444:39: warning: cast truncates bits from constant value (ffffff01 becomes 1) drivers/staging/rtl8821ae/rtl8821ae/phy.c:445:39: warning: cast truncates bits from constant value (ffffff01 becomes 1) Signed-off-by: Himangi Saraogi Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtl8821ae/rtl8821ae/phy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8821ae/rtl8821ae/phy.c b/drivers/staging/rtl8821ae/rtl8821ae/phy.c index c66129087a67..1dd33016b4b9 100644 --- a/drivers/staging/rtl8821ae/rtl8821ae/phy.c +++ b/drivers/staging/rtl8821ae/rtl8821ae/phy.c @@ -441,8 +441,8 @@ u32 phy_get_tx_bb_swing_8812A( struct rtl_dm *rtldm = rtl_dm(rtlpriv); struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); - char bb_swing_2g = (char) (-1 * 0xFF); - char bb_swing_5g = (char) (-1 * 0xFF); + char bb_swing_2g = (char) ((-1 * 0xFF) & 0xFF); + char bb_swing_5g = (char) ((-1 * 0xFF) & 0xFF); u32 out = 0x200; const char auto_temp = -1; -- 2.20.1