linux/drivers/net/wireless/iwmc3200wifi
Julia Lawall ff020726a7 drivers/net/wireless/iwmc3200wifi: 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: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2010-06-02 16:13:10 -04:00
..
bus.h iwmc3200wifi: cleanup unneeded debugfs error handling 2010-05-03 14:46:37 -04:00
cfg80211.c
cfg80211.h
commands.c
commands.h
debug.h iwmc3200wifi: fix busted iwm_debugfs_init definition 2010-05-03 16:21:10 -04:00
debugfs.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
eeprom.c
eeprom.h
fw.c
fw.h
hal.c
hal.h
iwm.h
Kconfig
lmac.h
main.c
Makefile iwmc3200wifi: check sparse endianness annotations 2010-04-16 15:47:02 -04:00
netdev.c
rx.c drivers/net/wireless/iwmc3200wifi: Use kmemdup 2010-06-02 16:13:10 -04:00
rx.h
sdio.c drivers/net: Remove unnecessary returns from void function()s 2010-05-14 00:19:28 -07:00
sdio.h
trace.c
trace.h
tx.c Merge branch 'master' into for-davem 2010-04-23 14:43:45 -04:00
umac.h