Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1615712

[PATCH] usb: dwc3: of-simple: fix noderef.cocci warnings

From kbuild test robot <lkp@intel.com>
Newsgroups linux.kernel
Subject [PATCH] usb: dwc3: of-simple: fix noderef.cocci warnings
Date 2017-04-04 07:30 +0200
Message-ID <tspcu-ug-7@gated-at.bofh.it> (permalink)
References <tspcu-ug-9@gated-at.bofh.it> <tsawO-7yd-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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;

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/4] reset: APIs to manage a list of resets Vivek Gautam <vivek.gautam@codeaurora.org> - 2017-04-03 15:50 +0200
  [PATCH v2 4/4] soc/tegra: pmc: Use the new reset APIs to manage reset controllers Vivek Gautam <vivek.gautam@codeaurora.org> - 2017-04-03 15:50 +0200
  [PATCH v2 2/4] reset: Add APIs to manage array of resets Vivek Gautam <vivek.gautam@codeaurora.org> - 2017-04-03 15:50 +0200
    Re: [PATCH v2 2/4] reset: Add APIs to manage array of resets Philipp Zabel <p.zabel@pengutronix.de> - 2017-04-03 18:40 +0200
      Re: [PATCH v2 2/4] reset: Add APIs to manage array of resets Vivek Gautam <vivek.gautam@codeaurora.org> - 2017-04-04 12:50 +0200
        Re: [PATCH v2 2/4] reset: Add APIs to manage array of resets Philipp Zabel <p.zabel@pengutronix.de> - 2017-04-04 14:50 +0200
          Re: [PATCH v2 2/4] reset: Add APIs to manage array of resets Vivek Gautam <vivek.gautam@codeaurora.org> - 2017-04-05 09:00 +0200
    Re: [PATCH v2 2/4] reset: Add APIs to manage array of resets kbuild test robot <lkp@intel.com> - 2017-04-04 06:20 +0200
  [PATCH v2 3/4] usb: dwc3: of-simple: Add support to get resets for the device Vivek Gautam <vivek.gautam@codeaurora.org> - 2017-04-03 15:50 +0200
    [PATCH] usb: dwc3: of-simple: fix noderef.cocci warnings kbuild test robot <lkp@intel.com> - 2017-04-04 07:30 +0200
    Re: [PATCH v2 3/4] usb: dwc3: of-simple: Add support to get resets  for the device kbuild test robot <lkp@intel.com> - 2017-04-04 07:30 +0200

csiph-web