Julia Lawall 80caf6017a drivers/net/wireless/wl12xx: 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>
Acked-by: Kalle Valo <kvalo@adurom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2010-06-02 16:13:09 -04:00
..
2010-06-02 16:02:54 -04:00
2010-03-09 15:02:59 -05:00
2009-10-27 16:48:19 -04:00
2009-12-21 18:56:02 -05:00
2010-04-09 13:43:10 -04:00
2010-02-19 15:52:42 -05:00
2010-01-14 18:16:54 -05:00
2010-03-31 14:39:11 -04:00
2010-02-19 15:52:47 -05:00
2010-04-06 16:55:14 -04:00