mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-04 23:35:27 +07:00
rtw88: remove unused variable
The orig variable is taken but not used, remove it Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
43712199e0
commit
522801493e
@ -1670,12 +1670,11 @@ void rtw_phy_tx_power_by_rate_config(struct rtw_hal *hal)
|
|||||||
static void
|
static void
|
||||||
__rtw_phy_tx_power_limit_config(struct rtw_hal *hal, u8 regd, u8 bw, u8 rs)
|
__rtw_phy_tx_power_limit_config(struct rtw_hal *hal, u8 regd, u8 bw, u8 rs)
|
||||||
{
|
{
|
||||||
s8 base, orig;
|
s8 base;
|
||||||
u8 ch;
|
u8 ch;
|
||||||
|
|
||||||
for (ch = 0; ch < RTW_MAX_CHANNEL_NUM_2G; ch++) {
|
for (ch = 0; ch < RTW_MAX_CHANNEL_NUM_2G; ch++) {
|
||||||
base = hal->tx_pwr_by_rate_base_2g[0][rs];
|
base = hal->tx_pwr_by_rate_base_2g[0][rs];
|
||||||
orig = hal->tx_pwr_limit_2g[regd][bw][rs][ch];
|
|
||||||
hal->tx_pwr_limit_2g[regd][bw][rs][ch] -= base;
|
hal->tx_pwr_limit_2g[regd][bw][rs][ch] -= base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user