Re: [PATCH] ath10k: Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element

2019-09-17 Thread zhong jiang
On 2019/9/17 15:16, Kalle Valo wrote: > zhong jiang wrote: > >> With the help of Coccinelle, ARRAY_SIZE can be replaced in >> ath10k_snoc_wlan_enable. >> >> Signed-off-by: zhong jiang > I already got an identical patch so dropping this one. > > error:

[PATCH] ath10k: Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element

2019-09-04 Thread zhong jiang
With the help of Coccinelle, ARRAY_SIZE can be replaced in ath10k_snoc_wlan_enable. Signed-off-by: zhong jiang --- drivers/net/wireless/ath/ath10k/snoc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/snoc.c b/drivers/net/wireless/ath