ath10k: Use ARRAY_SIZE
Subsystems (3)
PATCH 1/1 ath10k: Use ARRAY_SIZE
fix coccinelle warning, use ARRAY_SIZE
Signed-off-by Vasyl Gomonovych <[email protected]>
--- drivers/net/wireless/ath/ath10k/snoc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/wireless/ath/ath10k/snoc.c +1 -2
@@ -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;
Signature · 1 line
2.17.1
Quoted 4 lines · Vasyl Gomonovych
fix coccinelle warning, use
ARRAY_SIZESigned-off-by Vasyl Gomonovych <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
7921ae091907 ath10k: Use ARRAY_SIZE
Signature · 9 lines
https://patchwork.kernel.org/patch/11049553/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 4 lines · Vasyl Gomonovych
fix coccinelle warning, use
ARRAY_SIZESigned-off-by Vasyl Gomonovych <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
7921ae091907 ath10k: Use ARRAY_SIZE
Signature · 3 lines
https://patchwork.kernel.org/patch/11049553/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches