linux/drivers/media/video/tlg2300
Julia Lawall 2b3c543a83 V4L/DVB: drivers/media/video/tlg2300: Use kmemdup
Use kmemdup when some other buffer is immediately copied into the
allocated region.

A simplified version of the semantic patch that makes this change is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression from,to,size,flag;
statement S;
@@

-  to = \(kmalloc\|kzalloc\)(size,flag);
+  to = kmemdup(from,size,flag);
   if (to==NULL || ...) S
-  memcpy(to, from, size);
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-08-02 15:03:36 -03:00
..
Kconfig
Makefile
pd-alsa.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
pd-common.h V4L/DVB: media/video/tlg2300: fix build when CONFIG_PM=n 2010-02-26 15:11:02 -03:00
pd-dvb.c V4L/DVB: tlg2300: cleanups when power management is not configured 2010-05-18 00:46:24 -03:00
pd-main.c V4L/DVB: drivers/media/video/tlg2300: Use kmemdup 2010-08-02 15:03:36 -03:00
pd-radio.c V4L/DVB: tlg2300: make local variables and functions static 2010-05-18 00:46:25 -03:00
pd-video.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 2010-05-20 21:26:12 -07:00
vendorcmds.h