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-23 02:16:02 +0200 |
commit | 8f2877cad52da0719ec01d2dcfbdd3751bb94670 (patch) | |
tree | bb069e02f6e14e7b24e2e5f21368e7968bde2597 /drivers/net/phy/at803x.c | |
parent | net/mlx4_core: Fix the error flow when probing with invalid VF configuration (diff) | |
download | linux-8f2877cad52da0719ec01d2dcfbdd3751bb94670.tar.xz 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 '')
-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; |