Commit d6a496f9 authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman

staging: rtl8188eu: core: Remove function enable_rate_adaptive()

Remove function enable_rate_adaptive as it does nothing except call
Update_RA_Entry.
Modify call site of enable_rate_adaptive to call Update_RA_Entry
instead.
Issue found with Coccinelle.
Signed-off-by: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190712071746.2474-2-nishkadg.linux@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6290da3e
......@@ -1174,15 +1174,10 @@ void Update_RA_Entry(struct adapter *padapter, u32 mac_id)
rtw_hal_update_ra_mask(padapter, mac_id, 0);
}
static void enable_rate_adaptive(struct adapter *padapter, u32 mac_id)
{
Update_RA_Entry(padapter, mac_id);
}
void set_sta_rate(struct adapter *padapter, struct sta_info *psta)
{
/* rate adaptive */
enable_rate_adaptive(padapter, psta->mac_id);
Update_RA_Entry(padapter, psta->mac_id);
}
/* Update RRSR and Rate for USERATE */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment