aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFengguang Wu <[email protected]>2014-06-22 12:32:51 +0200
committerDavid S. Miller <[email protected]>2014-06-22 17:16:02 -0700
commit8f2877cad52da0719ec01d2dcfbdd3751bb94670 (patch)
treebb069e02f6e14e7b24e2e5f21368e7968bde2597
parent960b1f454e1ace6b76718f22828bcc3594a09422 (diff)
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: Fengguang Wu <[email protected]> Acked-by: Daniel Mack <[email protected]> Signed-off-by: David S. Miller <[email protected]>
-rw-r--r--drivers/net/phy/at803x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c
index 3cbd82ffc234..fdc1b418fa6a 100644
--- a/drivers/net/phy/at803x.c
+++ b/drivers/net/phy/at803x.c
@@ -193,7 +193,7 @@ static int at803x_probe(struct phy_device *phydev)
struct device *dev = &phydev->dev;
struct at803x_priv *priv;
- priv = devm_kzalloc(dev, sizeof(priv), GFP_KERNEL);
+ priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
if (!priv)
return -ENOMEM;