Re: [PATCH] brcmsmac: remove set but not used variables 'phybw40, maxtargetpwr'
From: Kalle Valo
Date: Thu Jan 10 2019 - 06:31:12 EST
YueHaibing <yuehaibing@xxxxxxxxxx> wrote:
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c:1202:5: warning: variable 'phybw40' set but not used [-Wunused-but-set-variable]
> drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c:4625:5: warning: variable 'phybw40' set but not used [-Wunused-but-set-variable]
> drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c:4834:5: warning: variable 'phybw40' set but not used [-Wunused-but-set-variable]
>
> drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c:3085:17: warning: variable 'maxtargetpwr' set but not used [-Wunused-but-set-variable]
> drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c:4215:17: warning: variable 'maxtargetpwr' set but not used [-Wunused-but-set-variable]
>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
Patch applied to wireless-drivers-next.git, thanks.
6375d40322f0 brcmsmac: remove set but not used variables 'phybw40, maxtargetpwr'
--
https://patchwork.kernel.org/patch/10738529/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches