From: kernel test robot 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 Reported-by: kernel test robot Signed-off-by: kernel test robot --- 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;