From: Julia Lawall <julia.lawall@lip6.fr>
To: Kalle Valo <kvalo@codeaurora.org>
Cc: kbuild-all@01.org, ath10k@lists.infradead.org
Subject: [PATCH] ath11k: fix noderef.cocci warnings
Date: Thu, 7 Mar 2019 22:36:13 +0100 (CET) [thread overview]
Message-ID: <alpine.DEB.2.21.1903072235080.2558@hadrien> (raw)
From: kbuild test robot <lkp@intel.com>
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")
Signed-off-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
---
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(-)
--- a/drivers/net/wireless/ath/ath11k/dp_rx.c
+++ b/drivers/net/wireless/ath/ath11k/dp_rx.c
@@ -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
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
next reply other threads:[~2019-03-07 21:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-07 21:36 Julia Lawall [this message]
2019-03-08 12:47 ` [PATCH] ath11k: fix noderef.cocci warnings Kalle Valo
2019-03-08 12:51 ` Julia Lawall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.21.1903072235080.2558@hadrien \
--to=julia.lawall@lip6.fr \
--cc=ath10k@lists.infradead.org \
--cc=kbuild-all@01.org \
--cc=kvalo@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox