linux/drivers/net/wireless/libertas_tf
Julia Lawall 0273002953 drivers/net/wireless/libertas_tf: 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: John W. Linville <linville@tuxdriver.com>
2010-06-02 16:13:10 -04:00
..
cmd.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2010-05-05 16:14:16 -04:00
deb_defs.h libertas_tf: avoid warning about pr_fmt redefinition 2010-04-30 14:38:28 -04:00
if_usb.c drivers/net/wireless/libertas_tf: Use kmemdup 2010-06-02 16:13:10 -04:00
if_usb.h
libertas_tf.h libertas_tf: avoid warning about pr_fmt redefinition 2010-04-30 14:38:28 -04:00
main.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
Makefile