All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] FROMGIT: phy: qcom: fix noderef.cocci warnings
@ 2021-12-07  8:45 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-07  8:45 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1172 bytes --]

From: kernel test robot <lkp@intel.com>

drivers/phy/qualcomm/phy-qcom-edp.c:574:31-37: ERROR: application of sizeof to pointer

 sizeof when applied to a pointer typed expression gives the size of
 the pointer

Generated by: scripts/coccinelle/misc/noderef.cocci

CC: Bjorn Andersson <bjorn.andersson@linaro.org>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.15
head:   91c5c24324cab361d7cf36992ca5ad028748ee32
commit: ee0fea14381c6a5fef385c64255fe47610468495 [14/17] FROMGIT: phy: qcom: Introduce new eDP PHY driver
:::::: branch date: 9 hours ago
:::::: commit date: 4 days ago

 phy-qcom-edp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/phy/qualcomm/phy-qcom-edp.c
+++ b/drivers/phy/qualcomm/phy-qcom-edp.c
@@ -571,7 +571,7 @@ static int qcom_edp_clks_register(struct
 	struct clk_init_data init = { };
 	int ret;
 
-	data = devm_kzalloc(edp->dev, sizeof(data), GFP_KERNEL);
+	data = devm_kzalloc(edp->dev, sizeof(*data), GFP_KERNEL);
 	if (!data)
 		return -ENOMEM;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-07  8:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-07  8:45 [PATCH] FROMGIT: phy: qcom: fix noderef.cocci warnings kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.