linux_dsm_epyc7002/drivers/media
Ezequiel Garcia 2e814af502 [media] cx18: 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: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-12-27 19:02:24 -02:00
..
common [media] media: saa7146: don't use mutex_lock_interruptible() in device_release() 2012-12-27 17:34:28 -02:00
dvb-core [media] m920x: add support for the VP-7049 Twinhan DVB-T USB Stick 2012-12-27 16:36:29 -02:00
dvb-frontends [media] drxd: allow functional gate control after, attach 2012-12-27 18:19:26 -02:00
firewire [media] remove include/linux/dvb/dmx.h 2012-10-19 07:29:17 -03:00
i2c [media] cx25840: Replace memcpy with struct assignment 2012-12-27 18:46:22 -02:00
mmc [media] siano: fix RC compilation 2012-11-07 11:09:08 +01:00
parport [media] Add missing help for some menuconfig items 2012-08-21 08:17:37 -03:00
pci [media] cx18: Replace memcpy with struct assignment 2012-12-27 19:02:24 -02:00
platform [media] omap3isp: ispqueue: Fix uninitialized variable compiler warnings 2012-12-27 18:21:49 -02:00
radio [media] drivers/media/radio/radio-cadet.c: fix error return code 2012-11-22 14:20:34 -02:00
rc [media] media/rc: fix oops on unloading module rc-core 2012-12-27 17:45:40 -02:00
tuners [media] tuners/tda18271: Replace memcpy with struct assignment 2012-12-27 19:01:13 -02:00
usb [media] au0828: Replace memcpy with struct assignment 2012-12-27 18:49:44 -02:00
v4l2-core [media] v4l: Tell user space we're using monotonic timestamps 2012-12-21 11:20:51 -02:00
Kconfig [media] Improve media Kconfig menu 2012-12-27 18:40:09 -02:00
Makefile [media] move i2c files into drivers/media/i2c 2012-09-06 18:42:54 -03:00
media-device.c [media] media: fix MEDIA_IOC_DEVICE_INFO return code 2012-08-12 07:57:57 -03:00
media-devnode.c [media] media-devnode: Replace printk with pr_* 2012-09-27 14:19:23 -03:00
media-entity.c [media] media: Add link_validate() op to check links to the sink pad 2012-05-14 08:44:11 -03:00