public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Vivek Gautam <vivek.gautam@codeaurora.org>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	linux-tegra@vger.kernel.org, linux-usb@vger.kernel.org,
	p.zabel@pengutronix.de, swarren@wwwdotorg.org,
	thierry.reding@gmail.com, balbi@kernel.org,
	Vivek Gautam <vivek.gautam@codeaurora.org>
Subject: [PATCH] usb: dwc3: of-simple: fix noderef.cocci warnings
Date: Tue, 4 Apr 2017 13:20:44 +0800	[thread overview]
Message-ID: <20170404052044.GA15865@intel11.lkp.intel.com> (raw)
In-Reply-To: <1491226922-20307-4-git-send-email-vivek.gautam@codeaurora.org>

drivers/usb/dwc3/dwc3-of-simple.c:53:43-49: 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

CC: Vivek Gautam <vivek.gautam@codeaurora.org>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 dwc3-of-simple.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/usb/dwc3/dwc3-of-simple.c
+++ b/drivers/usb/dwc3/dwc3-of-simple.c
@@ -50,7 +50,7 @@ static int dwc3_of_simple_reset_init(str
 
 	simple->num_resets = count;
 
-	simple->resets = devm_kcalloc(dev, count, sizeof(simple->resets),
+	simple->resets = devm_kcalloc(dev, count, sizeof(*simple->resets),
 							GFP_KERNEL);
 	if (!simple->resets)
 		return -ENOMEM;

  reply	other threads:[~2017-04-04  5:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-03 13:41 [PATCH v2 0/4] reset: APIs to manage a list of resets Vivek Gautam
2017-04-03 13:41 ` [PATCH v2 1/4] reset: Add API to count number of reset available with device Vivek Gautam
2017-04-04  4:22   ` kbuild test robot
2017-04-03 13:42 ` [PATCH v2 2/4] reset: Add APIs to manage array of resets Vivek Gautam
2017-04-03 16:36   ` Philipp Zabel
2017-04-04 10:39     ` Vivek Gautam
2017-04-04 12:47       ` Philipp Zabel
2017-04-05  6:50         ` Vivek Gautam
2017-04-04  4:12   ` kbuild test robot
2017-04-04  4:14   ` kbuild test robot
2017-04-04  4:23     ` Vivek Gautam
2017-04-03 13:42 ` [PATCH v2 3/4] usb: dwc3: of-simple: Add support to get resets for the device Vivek Gautam
2017-04-04  5:20   ` kbuild test robot [this message]
2017-04-04  5:20   ` kbuild test robot
2017-04-04  5:34   ` kbuild test robot
2017-04-03 13:42 ` [PATCH v2 4/4] soc/tegra: pmc: Use the new reset APIs to manage reset controllers Vivek Gautam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170404052044.GA15865@intel11.lkp.intel.com \
    --to=lkp@intel.com \
    --cc=balbi@kernel.org \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=swarren@wwwdotorg.org \
    --cc=thierry.reding@gmail.com \
    --cc=vivek.gautam@codeaurora.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox