2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 06:04:14 +08:00
linux-next/drivers/media/usb
Ezequiel Garcia 8fe392b8fd [media] usbvision: 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:44:30 -02:00
..
au0828 [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
b2c2
cpia2 [media] v4l: Tell user space we're using monotonic timestamps 2012-12-21 11:20:51 -02:00
cx231xx [media] cx231xx: Replace memcpy with struct assignment 2012-12-27 18:44:11 -02:00
dvb-usb [media] m920x: add support for the VP-7049 Twinhan DVB-T USB Stick 2012-12-27 16:36:29 -02:00
dvb-usb-v2 [media] it913x: fix correct endpoint size when pid filter on 2012-12-23 19:48:04 -02:00
em28xx [media] em28xx: prefer bulk mode on webcams 2012-12-23 17:24:30 -02:00
gspca [media] gspca_sonixj: Add a small delay after i2c_w1 2012-12-21 13:40:19 -02:00
hdpvr [media] drivers/media/usb/hdpvr/hdpvr-core.c: fix error return code 2012-11-22 14:22:31 -02:00
pvrusb2 [media] pvr2: fix minor storage 2012-11-21 18:10:33 -02:00
pwc [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
s2255 [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
siano [media] siano: fix RC compilation 2012-11-07 11:09:08 +01:00
sn9c102 [media] v4l: Tell user space we're using monotonic timestamps 2012-12-21 11:20:51 -02:00
stk1160 [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
stkwebcam [media] stk-webcam: Add an upside down dmi table, and add the Asus G1 to it 2012-12-21 13:34:30 -02:00
tlg2300 [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
tm6000 [media] tm6000-dvb: Fix module unload 2012-12-21 18:45:31 -02:00
ttusb-budget
ttusb-dec
usbvision [media] usbvision: Replace memcpy with struct assignment 2012-12-27 18:44:30 -02:00
uvc [media] uvcvideo: Fix control value clamping for unsigned integer controls 2012-11-28 10:31:14 -02:00
zr364xx [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
Kconfig [media] au0828: remove forced dependency of VIDEO_AU0828 on VIDEO_V4L2 2012-12-17 14:31:26 -02:00
Makefile