projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4371219
)
rtw88: remove unused variable
author
Yan-Hsuan Chuang
<yhchuang@realtek.com>
Wed, 29 May 2019 07:54:40 +0000
(15:54 +0800)
committer
Kalle Valo
<kvalo@codeaurora.org>
Thu, 27 Jun 2019 17:24:24 +0000
(20:24 +0300)
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>
drivers/net/wireless/realtek/rtw88/phy.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/realtek/rtw88/phy.c
b/drivers/net/wireless/realtek/rtw88/phy.c
index
c32e34d
..
5b69389
100644
(file)
--- a/
drivers/net/wireless/realtek/rtw88/phy.c
+++ b/
drivers/net/wireless/realtek/rtw88/phy.c
@@
-1670,12
+1670,11
@@
void rtw_phy_tx_power_by_rate_config(struct rtw_hal *hal)
static void
__rtw_phy_tx_power_limit_config(struct rtw_hal *hal, u8 regd, u8 bw, u8 rs)
{
- s8 base
, orig
;
+ s8 base;
u8 ch;
for (ch = 0; ch < RTW_MAX_CHANNEL_NUM_2G; ch++) {
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;
}