Skip to content

Commit

Permalink
cw1200: wsm: make array queue_id_to_wmm_aci static const
Browse files Browse the repository at this point in the history
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.

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/20220109230921.58766-1-colin.i.king@gmail.com
  • Loading branch information
Colin Ian King authored and Kalle Valo committed Jan 31, 2022
1 parent 708db26 commit fe683fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/st/cw1200/wsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit fe683fa

Please sign in to comment.