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
From: Fengguang Wu <fengguang.wu@xxxxxxxxx> Subject: [PATCH] [media] r820t: fix coccinelle warnings TO: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx> CC: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx> CC: linux-media@xxxxxxxxxxxxxxx CC: linux-kernel@xxxxxxxxxxxxxxx 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@xxxxxxxxxx> Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx> --- 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 */