mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 22:53:55 +08:00
staging: rtl8188eu: refactor rtl88eu_dm_update_rx_idle_ant()
Refactor rtl88eu_dm_update_rx_idle_ant() to reduce indentation level and clear line over 80 characters checkpatch warnings. Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20200105194936.5477-2-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0c5e99c920
commit
b4cf24cc93
@ -154,7 +154,9 @@ void rtl88eu_dm_update_rx_idle_ant(struct odm_dm_struct *dm_odm, u8 ant)
|
||||
struct adapter *adapter = dm_odm->Adapter;
|
||||
u32 default_ant, optional_ant;
|
||||
|
||||
if (dm_fat_tbl->RxIdleAnt != ant) {
|
||||
if (dm_fat_tbl->RxIdleAnt == ant)
|
||||
return;
|
||||
|
||||
if (ant == MAIN_ANT) {
|
||||
default_ant = (dm_odm->AntDivType == CG_TRX_HW_ANTDIV) ?
|
||||
MAIN_ANT_CG_TRX : MAIN_ANT_CGCS_RX;
|
||||
@ -182,7 +184,7 @@ void rtl88eu_dm_update_rx_idle_ant(struct odm_dm_struct *dm_odm, u8 ant)
|
||||
phy_set_bb_reg(adapter, ODM_REG_RX_ANT_CTRL_11N,
|
||||
BIT(8) | BIT(7) | BIT(6), optional_ant);
|
||||
}
|
||||
}
|
||||
|
||||
dm_fat_tbl->RxIdleAnt = ant;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user