Linux Media Controller development
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Cc: kbuild-all@01.org,
	Mauro Carvalho Chehab <mchehab+samsung@kernel.org>,
	Linux Media Mailing List <linux-media@vger.kernel.org>,
	Mauro Carvalho Chehab <mchehab@infradead.org>,
	Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>,
	Antti Palosaari <crope@iki.fi>, Jemma Denson <jdenson@gmail.com>,
	Patrick Boettcher <patrick.boettcher@posteo.de>,
	Sergey Kozlov <serjk@netup.ru>, Abylay Ospan <aospan@netup.ru>,
	Yasunari Takiguchi <Yasunari.Takiguchi@sony.com>,
	Malcolm Priestley <tvboxspy@gmail.com>,
	Michael Krufky <mkrufky@linuxtv.org>,
	Daniel Scheller <d.scheller.oss@gmail.com>,
	Matthias Schwarzott <zzam@gentoo.org>,
	Stefan Richter <stefanr@s5r6.in-berlin.de>,
	linux1394-devel@lists.sourceforge.net
Subject: [PATCH] media: dvb: fix noderef.cocci warnings
Date: Thu, 5 Jul 2018 13:49:09 +0800	[thread overview]
Message-ID: <20180705054909.GA2303@lkp-wsm-ep2> (raw)
In-Reply-To: <b3d63a8f038d136b26692bc3a14554960e767f4a.1530740760.git.mchehab+samsung@kernel.org>

From: kbuild test robot <fengguang.wu@intel.com>

drivers/media/dvb-core/dvb_frontend.c:2396:18-24: 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

Fixes: 07acff734698 ("media: dvb: represent min/max/step/tolerance freqs in Hz")
CC: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: kbuild test robot <fengguang.wu@intel.com>
---

 dvb_frontend.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/media/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb-core/dvb_frontend.c
@@ -2393,7 +2393,7 @@ static int dvb_frontend_handle_ioctl(str
 
 	case FE_GET_INFO: {
 		struct dvb_frontend_info *info = parg;
-		memset(info, 0, sizeof(info));
+		memset(info, 0, sizeof(*info));
 
 		dvb_frontend_get_frequency_limits(fe, &info->frequency_min, &info->frequency_max);
 		strcpy(info->name, fe->ops.info.name);

  parent reply	other threads:[~2018-07-05  5:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-05  2:46 [PATCH 0/2] DVB: represent frequencies at tuner/frontend .info in Hz Mauro Carvalho Chehab
2018-07-05  2:46 ` [PATCH 1/2] media: dvb: convert tuner_info frequencies to Hz Mauro Carvalho Chehab
2018-07-05 12:35   ` Michael Ira Krufky
2018-07-05 13:13     ` Mauro Carvalho Chehab
2018-07-05 19:16   ` Michael Büsch
2018-07-05 21:31     ` Mauro Carvalho Chehab
2018-07-05  2:46 ` [PATCH 2/2] media: dvb: represent min/max/step/tolerance freqs in Hz Mauro Carvalho Chehab
2018-07-05  5:31   ` kbuild test robot
2018-07-05  5:31   ` kbuild test robot
2018-07-05  5:49   ` kbuild test robot
2018-07-05  5:49   ` kbuild test robot [this message]
2018-07-05 11:56     ` [PATCH] media: dvb: fix noderef.cocci warnings Michael Ira Krufky

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=20180705054909.GA2303@lkp-wsm-ep2 \
    --to=fengguang.wu@intel.com \
    --cc=Yasunari.Takiguchi@sony.com \
    --cc=aospan@netup.ru \
    --cc=crope@iki.fi \
    --cc=d.scheller.oss@gmail.com \
    --cc=jdenson@gmail.com \
    --cc=kbuild-all@01.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux1394-devel@lists.sourceforge.net \
    --cc=mchehab+samsung@kernel.org \
    --cc=mchehab@infradead.org \
    --cc=mkrufky@linuxtv.org \
    --cc=patrick.boettcher@posteo.de \
    --cc=serjk@netup.ru \
    --cc=stefanr@s5r6.in-berlin.de \
    --cc=suzuki.katsuhiro@socionext.com \
    --cc=tvboxspy@gmail.com \
    --cc=zzam@gentoo.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