brcmfmac: make the read-only array pktflags static const
Don't populate the read-only array pktflags on the stack but instead make it static const. Also makes the object code a little smaller. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20220307223227.165963-1-colin.i.king@gmail.com
This commit is contained in:
parent
cb459950ed
commit
2386f64ceb
|
@ -4623,7 +4623,7 @@ exit:
|
|||
|
||||
s32 brcmf_vif_clear_mgmt_ies(struct brcmf_cfg80211_vif *vif)
|
||||
{
|
||||
s32 pktflags[] = {
|
||||
static const s32 pktflags[] = {
|
||||
BRCMF_VNDR_IE_PRBREQ_FLAG,
|
||||
BRCMF_VNDR_IE_PRBRSP_FLAG,
|
||||
BRCMF_VNDR_IE_BEACON_FLAG
|
||||
|
|
Loading…
Reference in New Issue