linux_dsm_epyc7002/drivers/media/pci/ivtv
Ezequiel Garcia 01a5cbebce [media] ivtv: 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:01:34 -02:00
..
ivtv-alsa-main.c [media] ivtv: get rid of warning: no previous prototype 2012-10-27 18:04:09 -02:00
ivtv-alsa-mixer.c [media] ivtv, ivtv-alsa: Add initial ivtv-alsa interface driver for ivtv 2012-09-18 13:26:50 -03:00
ivtv-alsa-mixer.h [media] ivtv, ivtv-alsa: Add initial ivtv-alsa interface driver for ivtv 2012-09-18 13:26:50 -03:00
ivtv-alsa-pcm.c [media] ivtv: get rid of warning: no previous prototype 2012-10-27 18:04:09 -02:00
ivtv-alsa-pcm.h [media] ivtv: get rid of warning: no previous prototype 2012-10-27 18:04:09 -02:00
ivtv-alsa.h [media] ivtv, ivtv-alsa: Add initial ivtv-alsa interface driver for ivtv 2012-09-18 13:26:50 -03:00
ivtv-cards.c
ivtv-cards.h
ivtv-controls.c
ivtv-controls.h
ivtv-driver.c [media] ivtv: ivtv-driver: Replace 'flush_work_sync()' 2012-12-20 15:22:30 -02:00
ivtv-driver.h [media] ivtv-alsa, ivtv: Connect ivtv PCM capture stream to ivtv-alsa interface driver 2012-09-18 13:29:07 -03:00
ivtv-fileops.c [media] ivtv: fix v4l2-compliance errors for the radio device 2012-10-01 17:14:27 -03:00
ivtv-fileops.h [media] ivtv, ivtv-alsa: Add initial ivtv-alsa interface driver for ivtv 2012-09-18 13:26:50 -03:00
ivtv-firmware.c [media] ivtv: get rid of warning: no previous prototype 2012-10-27 18:04:09 -02:00
ivtv-firmware.h
ivtv-gpio.c
ivtv-gpio.h
ivtv-i2c.c [media] ivtv: Replace memcpy with struct assignment 2012-12-27 19:01:34 -02:00
ivtv-i2c.h
ivtv-ioctl.c [media] ivtv-ioctl.c: remove an useless check 2012-10-27 18:04:33 -02:00
ivtv-ioctl.h
ivtv-irq.c [media] ivtv-alsa, ivtv: Connect ivtv PCM capture stream to ivtv-alsa interface driver 2012-09-18 13:29:07 -03:00
ivtv-irq.h
ivtv-mailbox.c
ivtv-mailbox.h
ivtv-queue.c
ivtv-queue.h
ivtv-routing.c
ivtv-routing.h
ivtv-streams.c [media] ivtv: disable a bunch of ioctls that are invalid for the decoder VBI 2012-10-01 17:23:24 -03:00
ivtv-streams.h
ivtv-udma.c
ivtv-udma.h
ivtv-vbi.c
ivtv-vbi.h
ivtv-version.h
ivtv-yuv.c
ivtv-yuv.h
ivtvfb.c
Kconfig [media] ivtv-alsa: Remove EXPERIMENTAL from Kconfig and revise Kconfig help text 2012-09-18 15:34:59 -03:00
Makefile [media] ivtv, ivtv-alsa: Add initial ivtv-alsa interface driver for ivtv 2012-09-18 13:26:50 -03:00