linux-sg2042/drivers/staging/line6
Julia Lawall 94002c07ff Staging: 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: Greg Kroah-Hartman <gregkh@suse.de>
2010-05-17 16:31:15 -07:00
..
Kconfig Staging: line6: fix build error, select SND_RAWMIDI 2009-04-03 14:54:26 -07:00
Makefile
audio.c Staging: line6: convert to snd_card_create() 2009-04-17 11:06:25 -07:00
audio.h
capture.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
capture.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
config.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
control.c staging: line6: Convert simple_strtoul() to strict_strtoul in control.c 2009-12-11 12:21:47 -08:00
control.h Staging: line6: rewrote inline comments in control.h 2010-05-11 11:35:53 -07:00
driver.c Staging: line6: driver: fix up sparse warnings 2010-05-11 11:36:11 -07:00
driver.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
dumprequest.c Staging: Use kmemdup 2010-05-17 16:31:15 -07:00
dumprequest.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
midi.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
midi.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
midibuf.c Staging: line6: fix checkpatch errors in midibuf.c 2009-04-03 14:54:26 -07:00
midibuf.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
pcm.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
pcm.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
playback.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
playback.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
pod.c Staging: Use kmemdup 2010-05-17 16:31:15 -07:00
pod.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
revision.h
toneport.c staging: line6: Convert simple_strtol to strict_strtol in toneport.c 2009-12-11 12:21:47 -08:00
toneport.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
usbdefs.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00
variax.c Staging: Use kmemdup 2010-05-17 16:31:15 -07:00
variax.h Staging: line6: coding style cleanups for .h files. 2009-04-03 14:54:25 -07:00