2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 13:13:57 +08:00
linux-next/drivers/media/pci/cx23885
Ezequiel Garcia 3618acab2c [media] cx23885: 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>
Reviewed-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-12-27 19:02:09 -02:00
..
altera-ci.c [media] cx23885: get rid of warning: no previous prototype 2012-10-27 17:58:25 -02:00
altera-ci.h
cimax2.c [media] cx23885: get rid of warning: no previous prototype 2012-10-27 17:58:25 -02:00
cimax2.h
cx23885-417.c
cx23885-alsa.c [media] cx23885-alsa: fix a false gcc warning at dprintk() 2012-10-27 18:01:49 -02:00
cx23885-av.c [media] cx23885: get rid of warning: no previous prototype 2012-10-27 17:58:25 -02:00
cx23885-av.h
cx23885-cards.c [media] Added support for AVerTV Hybrid Express Slim HC81R 2012-12-27 16:03:12 -02:00
cx23885-core.c [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
cx23885-dvb.c [media] tda10071: make sure both tuner and demod i2c addresses are specified 2012-12-21 14:36:54 -02:00
cx23885-f300.c [media] cx23885: get rid of warning: no previous prototype 2012-10-27 17:58:25 -02:00
cx23885-f300.h
cx23885-i2c.c
cx23885-input.c [media] cx23885: add RC support for MyGica X8507 2012-12-23 19:42:40 -02:00
cx23885-input.h [media] cx23885: get rid of warning: no previous prototype 2012-10-27 17:58:25 -02:00
cx23885-ioctl.c [media] cx23885: get rid of warning: no previous prototype 2012-10-27 17:58:25 -02:00
cx23885-ioctl.h
cx23885-ir.c [media] cx23885: get rid of warning: no previous prototype 2012-10-27 17:58:25 -02:00
cx23885-ir.h
cx23885-reg.h
cx23885-vbi.c
cx23885-video.c [media] cx23885: Replace memcpy with struct assignment 2012-12-27 19:02:09 -02:00
cx23885.h [media] Added support for AVerTV Hybrid Express Slim HC81R 2012-12-27 16:03:12 -02:00
cx23888-ir.c [media] cx23885: Replace memcpy with struct assignment 2012-12-27 19:02:09 -02:00
cx23888-ir.h
Kconfig [media] cx23885: add basic DVB-S2 support for Hauppauge HVR-4400 2012-12-18 17:05:44 -02:00
Makefile
netup-eeprom.c
netup-eeprom.h
netup-init.c [media] cx23885: get rid of warning: no previous prototype 2012-10-27 17:58:25 -02:00
netup-init.h