[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 3 Mar 2016 09:55:19 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: Giuseppe Cavallaro <peppe.cavallaro@...com>
Cc: kbuild-all@...org, netdev@...r.kernel.org,
Alexandre TORGUE <alexandre.torgue@...com>,
linux-kernel@...r.kernel.org
Subject: [PATCH] stmmac: fix noderef.cocci warnings
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:115:15-21: 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: Giuseppe Cavallaro <peppe.cavallaro@...com>
Signed-off-by: Fengguang Wu <fengguang.wu@...el.com>
---
stmmac_platform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
@@ -112,7 +112,7 @@ static struct stmmac_axi *stmmac_axi_set
if (!np)
return NULL;
- axi = kzalloc(sizeof(axi), GFP_KERNEL);
+ axi = kzalloc(sizeof(*axi), GFP_KERNEL);
if (!axi)
return ERR_PTR(-ENOMEM);
Powered by blists - more mailing lists