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 <himangi774@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Himangi Saraogi 2014-03-16 23:55:00 +05:30 committed by Greg Kroah-Hartman
parent b22f136071
commit 9e245f41d4
1 changed files with 2 additions and 2 deletions

View File

@ -441,8 +441,8 @@ u32 phy_get_tx_bb_swing_8812A(
struct rtl_dm *rtldm = rtl_dm(rtlpriv); struct rtl_dm *rtldm = rtl_dm(rtlpriv);
struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw));
char bb_swing_2g = (char) (-1 * 0xFF); char bb_swing_2g = (char) ((-1 * 0xFF) & 0xFF);
char bb_swing_5g = (char) (-1 * 0xFF); char bb_swing_5g = (char) ((-1 * 0xFF) & 0xFF);
u32 out = 0x200; u32 out = 0x200;
const char auto_temp = -1; const char auto_temp = -1;