diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2014-06-22 12:32:51 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-22 17:16:02 -0700 |
commit | 8f2877cad52da0719ec01d2dcfbdd3751bb94670 (patch) | |
tree | bb069e02f6e14e7b24e2e5f21368e7968bde2597 /drivers | |
parent | 960b1f454e1ace6b76718f22828bcc3594a09422 (diff) | |
download | linux-8f2877cad52da0719ec01d2dcfbdd3751bb94670.tar.gz linux-8f2877cad52da0719ec01d2dcfbdd3751bb94670.tar.bz2 linux-8f2877cad52da0719ec01d2dcfbdd3751bb94670.zip |
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 <fengguang.wu@intel.com>
Acked-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/phy/at803x.c | 2 |
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; |