From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751782AbdDDFV3 (ORCPT ); Tue, 4 Apr 2017 01:21:29 -0400 Received: from mga03.intel.com ([134.134.136.65]:22224 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750932AbdDDFV1 (ORCPT ); Tue, 4 Apr 2017 01:21:27 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,273,1486454400"; d="scan'208";a="841495558" Date: Tue, 4 Apr 2017 13:20:44 +0800 From: kbuild test robot To: Vivek Gautam 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 Subject: [PATCH] usb: dwc3: of-simple: fix noderef.cocci warnings Message-ID: <20170404052044.GA15865@intel11.lkp.intel.com> References: <201704041200.k8nK4juX%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1491226922-20307-4-git-send-email-vivek.gautam@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 Signed-off-by: Fengguang Wu --- 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;