mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -4623,7 +4623,7 @@ s32 brcmf_vif_set_mgmt_ie(struct brcmf_cfg80211_vif *vif, s32 pktflag,
|
||||||
|
|
||||||
s32 brcmf_vif_clear_mgmt_ies(struct brcmf_cfg80211_vif *vif)
|
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_PRBREQ_FLAG,
|
||||||
BRCMF_VNDR_IE_PRBRSP_FLAG,
|
BRCMF_VNDR_IE_PRBRSP_FLAG,
|
||||||
BRCMF_VNDR_IE_BEACON_FLAG
|
BRCMF_VNDR_IE_BEACON_FLAG
|
||||||
|
|
Loading…
Reference in a new issue