Commit 8f2877ca authored by Fengguang Wu's avatar Fengguang Wu Committed by David S. Miller
Browse files

net: phy: at803x: fix coccinelle warnings



drivers/net/phy/at803x.c:196:26-32: 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
Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Acked-by: default avatarDaniel Mack <zonque@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 960b1f45
...@@ -193,7 +193,7 @@ static int at803x_probe(struct phy_device *phydev) ...@@ -193,7 +193,7 @@ static int at803x_probe(struct phy_device *phydev)
struct device *dev = &phydev->dev; struct device *dev = &phydev->dev;
struct at803x_priv *priv; struct at803x_priv *priv;
priv = devm_kzalloc(dev, sizeof(priv), GFP_KERNEL); priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
if (!priv) if (!priv)
return -ENOMEM; return -ENOMEM;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment