From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Mack Subject: [PATCH] net: phy: at803x: fix coccinelle warnings Date: Sun, 22 Jun 2014 12:32:51 +0200 Message-ID: <1403433171-23565-1-git-send-email-zonque@gmail.com> Cc: davem@davemloft.net, marek.belisko@gmail.com, ujhelyi.m@gmail.com, Fengguang Wu To: netdev@vger.kernel.org, f.fainelli@gmail.com Return-path: Received: from mail-wi0-f177.google.com ([209.85.212.177]:48139 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751752AbaFVKdB (ORCPT ); Sun, 22 Jun 2014 06:33:01 -0400 Received: by mail-wi0-f177.google.com with SMTP id r20so2700027wiv.10 for ; Sun, 22 Jun 2014 03:33:00 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: From: Fengguang Wu 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 Acked-by: Daniel Mack --- 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