Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Fengguang Wu and committed by
David S. Miller
8f2877ca 960b1f45

+1 -1
+1 -1
drivers/net/phy/at803x.c
··· 193 193 struct device *dev = &phydev->dev; 194 194 struct at803x_priv *priv; 195 195 196 - priv = devm_kzalloc(dev, sizeof(priv), GFP_KERNEL); 196 + priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); 197 197 if (!priv) 198 198 return -ENOMEM; 199 199