Re: wifi: brcmsmac: remove unused has_5g variable

From: Kalle Valo
Date: Fri Mar 31 2023 - 10:51:00 EST


Tom Rix <trix@xxxxxxxxxx> wrote:

> clang with W=1 reports
> drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c:1051:6: error:
> variable 'has_5g' set but not used [-Werror,-Wunused-but-set-variable]
> int has_5g = 0;
> ^
> This variable is not used so remove it.
>
> Signed-off-by: Tom Rix <trix@xxxxxxxxxx>
> Reviewed-by: Simon Horman <simon.horman@xxxxxxxxxxxx>

Patch applied to wireless-next.git, thanks.

5aeb763a27c2 wifi: brcmsmac: remove unused has_5g variable

--
https://patchwork.kernel.org/project/linux-wireless/patch/20230325130343.1334209-1-trix@xxxxxxxxxx/

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