diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-03-07 22:24:29 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2022-03-16 17:40:22 +0100 |
commit | c00e13726b6c728370686b6d6e0e71b0a9f37f03 (patch) | |
tree | 310009bd202cd69fc561971d4948d01b1e70f94f /drivers/net | |
parent | 01318bc00d16947715e8f65a629806e5953a36ff (diff) | |
download | linux-stable-c00e13726b6c728370686b6d6e0e71b0a9f37f03.tar.gz linux-stable-c00e13726b6c728370686b6d6e0e71b0a9f37f03.tar.bz2 linux-stable-c00e13726b6c728370686b6d6e0e71b0a9f37f03.zip |
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 <colin.i.king@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c index 5e65fa3f3cba..eeb73d14552b 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--) { |