mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-08 16:34:48 +07:00
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:
parent
0227ff3656
commit
7921ae0919
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user