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>
This commit is contained in:
Fengguang Wu 2014-06-22 12:32:51 +02:00 коммит произвёл David S. Miller
Родитель 960b1f454e
Коммит 8f2877cad5
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;