From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mga05.intel.com ([192.55.52.43]:51904 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751623AbeGEFua (ORCPT ); Thu, 5 Jul 2018 01:50:30 -0400 Date: Thu, 5 Jul 2018 13:49:09 +0800 From: kbuild test robot To: Mauro Carvalho Chehab Cc: kbuild-all@01.org, Mauro Carvalho Chehab , Linux Media Mailing List , Mauro Carvalho Chehab , Katsuhiro Suzuki , Antti Palosaari , Jemma Denson , Patrick Boettcher , Sergey Kozlov , Abylay Ospan , Yasunari Takiguchi , Malcolm Priestley , Michael Krufky , Daniel Scheller , Matthias Schwarzott , Stefan Richter , linux1394-devel@lists.sourceforge.net Subject: [PATCH] media: dvb: fix noderef.cocci warnings Message-ID: <20180705054909.GA2303@lkp-wsm-ep2> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-media-owner@vger.kernel.org List-ID: From: kbuild test robot 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 Signed-off-by: kbuild test robot --- 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);