YueHaibing <yuehaibing@xxxxxxxxxx> wrote: > 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@xxxxxxxxxx> Patch applied to wireless-drivers-next.git, thanks. 662a7b078cff b43: remove set but not used variables 'tx_pwr_state,tmp2' -- https://patchwork.kernel.org/patch/10713095/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches