提交 7921ae09 编写于 作者: V Vasyl Gomonovych 提交者: Kalle Valo

ath10k: Use ARRAY_SIZE

fix coccinelle warning, use ARRAY_SIZE
Signed-off-by: NVasyl Gomonovych <gomonovych@gmail.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 0227ff36
......@@ -976,8 +976,7 @@ static int ath10k_snoc_wlan_enable(struct ath10k *ar,
sizeof(struct ath10k_svc_pipe_cfg);
cfg.ce_svc_cfg = (struct ath10k_svc_pipe_cfg *)
&target_service_to_ce_map_wlan;
cfg.num_shadow_reg_cfg = sizeof(target_shadow_reg_cfg_map) /
sizeof(struct ath10k_shadow_reg_cfg);
cfg.num_shadow_reg_cfg = ARRAY_SIZE(target_shadow_reg_cfg_map);
cfg.shadow_reg_cfg = (struct ath10k_shadow_reg_cfg *)
&target_shadow_reg_cfg_map;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册