OpenCloudOS-Kernel/drivers/net/wireless/p54
Julia Lawall 27b81bbed8 drivers/net/wireless/p54: 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:12 -04:00
..
Kconfig wireless: remove WLAN_80211 and WLAN_PRE80211 from Kconfig 2009-10-30 16:50:35 -04:00
Makefile p54: Modify p54 files for new organization 2009-07-10 15:02:24 -04:00
eeprom.c drivers/net/wireless/p54: Use kmemdup 2010-06-02 16:13:12 -04:00
eeprom.h p54: Move eeprom header 2009-07-10 15:01:58 -04:00
fwio.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
led.c mac80211: redefine usage of the mac80211 workqueue 2009-08-04 16:44:14 -04:00
lmac.h p54: fix beaconing related firmware crash 2009-07-24 15:05:21 -04:00
main.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
net2280.h
p54.h p54: remove get_tx_stats() mac80211 op 2010-02-08 16:51:01 -05:00
p54pci.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
p54pci.h p54pci: move tx cleanup into tasklet 2010-01-19 16:43:12 -05:00
p54spi.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
p54spi.h
p54spi_eeprom.h
p54usb.c drivers/net/wireless/p54: Use kmemdup 2010-06-02 16:13:12 -04:00
p54usb.h p54usb: rework driver for resume 2009-05-06 15:14:41 -04:00
txrx.c p54: remove usage of deprecated noise value 2010-04-28 16:48:22 -04:00