]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
b43: remove set but not used variables 'tx_pwr_state,tmp2'
authorYueHaibing <yuehaibing@huawei.com>
Wed, 5 Dec 2018 07:26:06 +0000 (07:26 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 13 Dec 2018 15:02:17 +0000 (17:02 +0200)
commit662a7b078cff6ab246d875775af7affedcf6e2d5
treef57c3b69de74ba123d92e541afc65360826166ab
parent412dd15c8177d93abe0c8787b83b31c5eb061405
b43: remove set but not used variables 'tx_pwr_state,tmp2'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/wireless/broadcom/b43/phy_n.c: In function 'b43_nphy_op_recalc_txpower':
drivers/net/wireless/broadcom/b43/phy_n.c:5898:7: warning:
 variable 'tx_pwr_state' set but not used [-Wunused-but-set-variable]

drivers/net/wireless/broadcom/b43/phy_n.c:6047:20: warning:
 variable 'tmp2' set but not used [-Wunused-but-set-variable]

'tx_pwr_state' never used since introduction in commit
8615eb2870f1 ("b43: N-PHY: support setting custom TX power")

'tmp2' not used any more since commit c002831a07dd ("b43: N-PHY: use helper
for checking IPA")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/b43/phy_n.c