Skip to contentSkip to conversation

cw1200: wsm: make array queue_id_to_wmm_aci static const

PATCH In review Colin Ian King 2 participants 2 messages Jan 9, 2022 – Jan 31, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cw1200: wsm: make array queue_id_to_wmm_aci static const

Don't populate the read-only array queue_id_to_wmm_aci on the stack but instead make it static. Also makes the object code a little smaller.

---
 drivers/net/wireless/st/cw1200/wsm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/st/cw1200/wsm.c +1 -1
index 99624dd34886..5a3e7a626702 100644
@@ -537,7 +537,7 @@ int wsm_set_tx_queue_params(struct cw1200_common *priv,
 {
 	int ret;
 	struct wsm_buf *buf = &priv->wsm_cmd_buf;
-	u8 queue_id_to_wmm_aci[] = {3, 2, 0, 1};
+	static const u8 queue_id_to_wmm_aci[] = { 3, 2, 0, 1 };
 
 	wsm_cmd_lock(priv);
 
Signature · 1 line
2.32.0
#1 lore raw
Quoted 4 lines · Colin Ian King

Don't populate the read-only array queue_id_to_wmm_aci on the stack but instead make it static. Also makes the object code a little smaller.

Patch applied to wireless-next.git, thanks.

fe683faecc7a cw1200: wsm: make array queue_id_to_wmm_aci static const

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

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