From: Colin Ian King Date: Mon, 7 Mar 2022 22:24:29 +0000 (+0000) Subject: mt76: connac: make read-only array ba_range static const X-Git-Tag: v6.1-rc5~1746^2~44^2~1^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c00e13726b6c728370686b6d6e0e71b0a9f37f03;p=platform%2Fkernel%2Flinux-starfive.git mt76: connac: make read-only array ba_range static const Don't populate the read-only array ba_range on the stack but instead make it static const. Also makes the object code a little smaller. Signed-off-by: Colin Ian King Signed-off-by: Felix Fietkau --- diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c index 5e65fa3..eeb73d1 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c @@ -1054,7 +1054,7 @@ void mt76_connac_mcu_wtbl_ba_tlv(struct mt76_dev *dev, struct sk_buff *skb, } if (enable && tx) { - u8 ba_range[] = { 4, 8, 12, 24, 36, 48, 54, 64 }; + static const u8 ba_range[] = { 4, 8, 12, 24, 36, 48, 54, 64 }; int i; for (i = 7; i > 0; i--) {