diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2016-03-03 04:55:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-07 06:46:09 +0300 |
commit | 4c3e962df044c34d25403f8f58ff7b34c4966b4a (patch) | |
tree | 8e2a3805007bdf94719a6aa580c500cf67f93146 /drivers/net/ethernet/stmicro | |
parent | d1491fa54ceecfc32147626375e27937cb54b091 (diff) | |
download | linux-4c3e962df044c34d25403f8f58ff7b34c4966b4a.tar.xz |
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@st.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index 69ccf486d4fa..9cf181f839fd 100644 --- 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_setup(struct platform_device *pdev) if (!np) return NULL; - axi = kzalloc(sizeof(axi), GFP_KERNEL); + axi = kzalloc(sizeof(*axi), GFP_KERNEL); if (!axi) return ERR_PTR(-ENOMEM); |