[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1403433171-23565-1-git-send-email-zonque@gmail.com>
Date: Sun, 22 Jun 2014 12:32:51 +0200
From: Daniel Mack <zonque@...il.com>
To: netdev@...r.kernel.org, f.fainelli@...il.com
Cc: davem@...emloft.net, marek.belisko@...il.com, ujhelyi.m@...il.com,
Fengguang Wu <fengguang.wu@...el.com>
Subject: [PATCH] net: phy: at803x: fix coccinelle warnings
From: Fengguang Wu <fengguang.wu@...el.com>
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@...el.com>
Acked-by: Daniel Mack <zonque@...il.com>
---
drivers/net/phy/at803x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c
index 3cbd82f..fdc1b41 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;
--
1.9.3
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists