mirror of https://gitee.com/openkylin/linux.git
staging: rtl8188eu: remove unnecessary parentheses in odm_rtl8188e.c
Remove unnecessary parentheses in odm_rtl8188e.c. Reported by checkpatch. Signed-off-by: Michael Straube <straube.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
44b676a635
commit
cea7a2481b
|
@ -13,7 +13,7 @@ static void dm_rx_hw_antena_div_init(struct odm_dm_struct *dm_odm)
|
||||||
struct adapter *adapter = dm_odm->Adapter;
|
struct adapter *adapter = dm_odm->Adapter;
|
||||||
u32 value32;
|
u32 value32;
|
||||||
|
|
||||||
if (*(dm_odm->mp_mode) == 1) {
|
if (*dm_odm->mp_mode == 1) {
|
||||||
dm_odm->AntDivType = CGCS_RX_SW_ANTDIV;
|
dm_odm->AntDivType = CGCS_RX_SW_ANTDIV;
|
||||||
phy_set_bb_reg(adapter, ODM_REG_IGI_A_11N, BIT(7), 0);
|
phy_set_bb_reg(adapter, ODM_REG_IGI_A_11N, BIT(7), 0);
|
||||||
phy_set_bb_reg(adapter, ODM_REG_LNA_SWITCH_11N, BIT(31), 1);
|
phy_set_bb_reg(adapter, ODM_REG_LNA_SWITCH_11N, BIT(31), 1);
|
||||||
|
@ -44,7 +44,7 @@ static void dm_trx_hw_antenna_div_init(struct odm_dm_struct *dm_odm)
|
||||||
struct adapter *adapter = dm_odm->Adapter;
|
struct adapter *adapter = dm_odm->Adapter;
|
||||||
u32 value32;
|
u32 value32;
|
||||||
|
|
||||||
if (*(dm_odm->mp_mode) == 1) {
|
if (*dm_odm->mp_mode == 1) {
|
||||||
dm_odm->AntDivType = CGCS_RX_SW_ANTDIV;
|
dm_odm->AntDivType = CGCS_RX_SW_ANTDIV;
|
||||||
phy_set_bb_reg(adapter, ODM_REG_IGI_A_11N, BIT(7), 0);
|
phy_set_bb_reg(adapter, ODM_REG_IGI_A_11N, BIT(7), 0);
|
||||||
phy_set_bb_reg(adapter, ODM_REG_RX_ANT_CTRL_11N,
|
phy_set_bb_reg(adapter, ODM_REG_RX_ANT_CTRL_11N,
|
||||||
|
@ -90,7 +90,7 @@ static void dm_fast_training_init(struct odm_dm_struct *dm_odm)
|
||||||
struct fast_ant_train *dm_fat_tbl = &dm_odm->DM_FatTable;
|
struct fast_ant_train *dm_fat_tbl = &dm_odm->DM_FatTable;
|
||||||
u32 AntCombination = 2;
|
u32 AntCombination = 2;
|
||||||
|
|
||||||
if (*(dm_odm->mp_mode) == 1) {
|
if (*dm_odm->mp_mode == 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue