Subject: Re: [PATCH] brcmsmac: remove three set but not used variables

From: Kalle Valo <[email-masked]>
Date: Tue, 6 Aug 2019 12:38:03 +0000 (UTC)

YueHaibing <[email-masked]> wrote:

> Fixes gcc '-Wunused-but-set-variable' warning:
> 
> drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c: In function 'brcms_c_set_gmode':
> drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c:5257:7: warning: variable 'preamble_restrict' set but not used [-Wunused-but-set-variable]
> drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c:5256:6: warning: variable 'preamble' set but not used [-Wunused-but-set-variable]
> drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c:5251:7: warning: variable 'shortslot_restrict' set but not used [-Wunused-but-set-variable]
> 
> They are never used so can be removed.
> 
> Reported-by: Hulk Robot <[email-masked]>
> Signed-off-by: YueHaibing <[email-masked]>

Patch applied to wireless-drivers-next.git, thanks.

de019a3bdd6e brcmsmac: remove three set but not used variables

-- 
https://patchwork.kernel.org/patch/11061171/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches