linux_dsm_epyc7002/drivers/media/pci
Ezequiel Garcia 37320d7bc0 [media] zr36067: Replace memcpy with struct assignment
This kind of memcpy() is error-prone. Its replacement with a struct
assignment is prefered because it's type-safe and much easier to read.
Found by coccinelle. Hand patched and reviewed.
Tested by compilation only.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@@
identifier struct_name;
struct struct_name to;
struct struct_name from;
expression E;
@@
-memcpy(&(to), &(from), E);
+to = from;
// </smpl>

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-12-27 18:48:35 -02:00
..
b2c2
bt8xx [media] bttv: avoid flooding the kernel log when i2c debugging is disabled 2012-12-27 18:24:16 -02:00
cx18 [media] cx18: get rid of warning: no previous prototype 2012-10-27 17:58:14 -02:00
cx88 [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
cx23885 [media] Added support for AVerTV Hybrid Express Slim HC81R 2012-12-27 16:03:12 -02:00
cx25821 [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
ddbridge
dm1105 [media] drivers/media/pci/dm1105/dm1105.c: fix error return code 2012-11-22 14:20:28 -02:00
ivtv [media] ivtv: ivtv-driver: Replace 'flush_work_sync()' 2012-12-20 15:22:30 -02:00
mantis [media] mantis: get rid of warning: no previous prototype 2012-10-27 18:05:22 -02:00
meye [media] v4l: Tell user space we're using monotonic timestamps 2012-12-21 11:20:51 -02:00
ngene [media] ngene: separate demodulator and tuner attach 2012-12-27 18:21:20 -02:00
pluto2
pt1
saa7134 [media] saa7134: Add pm_qos_request to fix video corruption 2012-12-27 16:08:55 -02:00
saa7146
saa7164 [media] saa7134,saa7164: warning: comparison of unsigned fixes 2012-10-28 07:38:48 -02:00
sta2x11 [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
ttpci [media] dvb: push down ioctl lock in dvb_usercopy 2012-12-27 15:44:21 -02:00
zoran [media] zr36067: Replace memcpy with struct assignment 2012-12-27 18:48:35 -02:00
Kconfig
Makefile