* drivers/media/tuners/r820t.c:1534:3-9: Replace memcpy with struct assignment
@ 2014-04-08 15:10 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2014-04-08 15:10 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: linux-media, kbuild-all
[-- Attachment #1: Type: text/plain, Size: 576 bytes --]
tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a7963eb7f4c4b5df84d5dd5083734278ad75bafb
commit: 25cf4d462abd6d78d224b564de82dcdab7973673 [media] r820t: add IMR calibrate code
date: 12 months ago
coccinelle warnings: (new ones prefixed by >>)
>> drivers/media/tuners/r820t.c:1534:3-9: Replace memcpy with struct assignment
Please consider folding the attached diff :-)
---
0-DAY kernel build testing backend Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
[-- Attachment #2: memcpy-assign:r820t.patch --]
[-- Type: text/x-diff, Size: 886 bytes --]
From: Fengguang Wu <fengguang.wu@intel.com>
Subject: [PATCH] [media] r820t: fix coccinelle warnings
TO: Mauro Carvalho Chehab <mchehab@redhat.com>
CC: Mauro Carvalho Chehab <mchehab@redhat.com>
CC: linux-media@vger.kernel.org
CC: linux-kernel@vger.kernel.org
drivers/media/tuners/r820t.c:1534:3-9: Replace memcpy with struct assignment
Generated by: scripts/coccinelle/misc/memcpy-assign.cocci
CC: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
r820t.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/media/tuners/r820t.c
+++ b/drivers/media/tuners/r820t.c
@@ -1531,7 +1531,7 @@ static int r820t_imr_cross(struct r820t_
cross[i].value = rc;
if (cross[i].value < tmp.value)
- memcpy(&tmp, &cross[i], sizeof(tmp));
+ tmp = cross[i];
}
if ((tmp.phase_y & 0x1f) == 1) { /* y-direction */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-04-08 16:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-08 15:10 drivers/media/tuners/r820t.c:1534:3-9: Replace memcpy with struct assignment kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).