ath11k: fix noderef.cocci warnings
PATCH 1/1 ath11k: fix noderef.cocci warnings
From: kbuild test robot <[email protected]>
sizeof when applied to a pointer typed expression gives the size of the pointer
Generated by: scripts/coccinelle/misc/noderef.cocci
---
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git ath11k-bringup head: e7daa3ec639f390e383dae0db9e6b143bcc7b5bc commit: 258bbf525e652e244aa8b2331f55fda573fbe926 [3/42] ath11k: add driver
:::::: branch date: 5 hours ago
:::::: commit date: 4 weeks ago
dp_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/dp_rx.c +1 -1
@@ -275,7 +275,7 @@ static void ath11k_dp_rx_tid_del_func(stif (status ==HAL_REO_CMD_DRAIN ) goto free_desc; - elem =kzalloc (sizeof (elem),GFP_ATOMIC ); + elem =kzalloc (sizeof (*elem),GFP_ATOMIC );if (!elem) {ath11k_warn (ab,"failed to allocate memory for cache flush element\n" ); goto free_desc;
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 10 lines · Julia Lawall
From: kbuild test robot <[email protected]>
sizeof when applied to a pointer typed expression gives the size of the pointer
Generated by:
scripts/coccinelle/misc/noderef.cocciFixes 258bbf525e65 ("ath11k: add driver")Signed-off-by kbuild test robot <[email protected]>Signed-off-by Julia Lawall <[email protected]>
Doesn't apply for some reason.
Signature · 6 lines
Kalle Valo _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 7 lines · Kalle Valo
Quoted 5 lines · Julia Lawall
From: kbuild test robot <[email protected]>
sizeof when applied to a pointer typed expression gives the size of the pointer
Quoted 7 lines
Quoted 5 lines
Generated by:
scripts/coccinelle/misc/noderef.cocciFixes 258bbf525e65 ("ath11k: add driver")Signed-off-by kbuild test robot <[email protected]>Signed-off-by Julia Lawall <[email protected]>Doesn't apply for some reason.
OK, I'll check on these. Thanks.
julia
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k