OpenCloudOS-Kernel/drivers/media/pci
Ezequiel Garcia b4b1d04006 [media] bttv: 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 19:02:38 -02:00
..
b2c2 [media] Kconfig: Fix b2c2 common code selection 2012-08-21 08:38:31 -03:00
bt8xx [media] bttv: Replace memcpy with struct assignment 2012-12-27 19:02:38 -02:00
cx18 [media] cx18: Replace memcpy with struct assignment 2012-12-27 19:02:24 -02:00
cx88 [media] cx88: Replace memcpy with struct assignment 2012-12-27 19:01:51 -02:00
cx23885 [media] cx23885: Replace memcpy with struct assignment 2012-12-27 19:02:09 -02:00
cx25821 [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
ddbridge [media] ddbridge: fix error handling in module_init_ddbridge() 2012-09-11 15:29:00 -03:00
dm1105 [media] drivers/media/pci/dm1105/dm1105.c: fix error return code 2012-11-22 14:20:28 -02:00
ivtv [media] ivtv: Replace memcpy with struct assignment 2012-12-27 19:01:34 -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 [media] dvb_frontend: add multistream support 2012-09-23 20:59:32 -03:00
saa7134 [media] saa7134: Add pm_qos_request to fix video corruption 2012-12-27 16:08:55 -02:00
saa7146 [media] v4l2: make vidioc_s_audio const 2012-09-26 10:50:12 -03:00
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 [media] Add missing help for some menuconfig items 2012-08-21 08:17:37 -03:00
Makefile [media] Fix some Makefile rules 2012-08-16 19:55:03 -03:00