ath10k: Use ARRAY_SIZE
fix coccinelle warning, use ARRAY_SIZE Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
committed by
Kalle Valo
parent
0227ff3656
commit
7921ae0919
@@ -976,8 +976,7 @@ static int ath10k_snoc_wlan_enable(struct ath10k *ar,
|
|||||||
sizeof(struct ath10k_svc_pipe_cfg);
|
sizeof(struct ath10k_svc_pipe_cfg);
|
||||||
cfg.ce_svc_cfg = (struct ath10k_svc_pipe_cfg *)
|
cfg.ce_svc_cfg = (struct ath10k_svc_pipe_cfg *)
|
||||||
&target_service_to_ce_map_wlan;
|
&target_service_to_ce_map_wlan;
|
||||||
cfg.num_shadow_reg_cfg = sizeof(target_shadow_reg_cfg_map) /
|
cfg.num_shadow_reg_cfg = ARRAY_SIZE(target_shadow_reg_cfg_map);
|
||||||
sizeof(struct ath10k_shadow_reg_cfg);
|
|
||||||
cfg.shadow_reg_cfg = (struct ath10k_shadow_reg_cfg *)
|
cfg.shadow_reg_cfg = (struct ath10k_shadow_reg_cfg *)
|
||||||
&target_shadow_reg_cfg_map;
|
&target_shadow_reg_cfg_map;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user