Skip to contentSkip to conversation

ath11k: fix noderef.cocci warnings

PATCH In review Julia Lawall 2 participants 3 messages Mar 7, 2019 – Mar 8, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

Fixes 258bbf525e65 ("ath11k: add driver")

---

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(st
 	if (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

#1 lore raw
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.cocci

Fixes 258bbf525e65 ("ath11k: add driver")

Doesn't apply for some reason.

Signature · 6 lines
Kalle Valo

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
#2 lore raw
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.cocci

Fixes 258bbf525e65 ("ath11k: add driver")

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