android_kernel_motorola_sm6225/drivers/net/wireless/b43
Julia Lawall a61aac7cf1 drivers/net/wireless/b43: 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:11 -04:00
..
b43.h b43: N-PHY: add some registers and structs definitions 2010-03-09 15:06:49 -05:00
debugfs.c
debugfs.h
dma.c drivers/net/wireless/b43: Use kmemdup 2010-06-02 16:13:11 -04:00
dma.h b43: remove get_tx_stats() mac80211 op 2010-02-08 16:51:00 -05:00
Kconfig b43: fall back gracefully to PIO mode after fatal DMA errors 2010-02-26 17:26:16 -05:00
leds.c
leds.h
lo.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
lo.h
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
main.h
Makefile
pcmcia.c pcmcia: re-work pcmcia_request_irq() 2010-05-10 10:23:13 +02:00
pcmcia.h
phy_a.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
phy_a.h
phy_common.c b43: update cordic code to match current specs 2010-01-25 16:39:03 -05:00
phy_common.h b43: update cordic code to match current specs 2010-01-25 16:39:03 -05:00
phy_g.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
phy_g.h
phy_lp.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
phy_lp.h
phy_n.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2010-04-15 16:21:34 -04:00
phy_n.h b43: N-PHY: switch to chanspec ops 2010-03-09 15:06:57 -05:00
pio.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
pio.h b43: remove get_tx_stats() mac80211 op 2010-02-08 16:51:00 -05:00
rfkill.c
rfkill.h
sdio.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
sdio.h
sysfs.c
sysfs.h
tables.c
tables.h
tables_lpphy.c
tables_lpphy.h
tables_nphy.c b43: N-PHY: prepare for rev3+ channel tables 2010-03-31 14:39:19 -04:00
tables_nphy.h b43: N-PHY: prepare for rev3+ channel tables 2010-03-31 14:39:19 -04:00
wa.c
wa.h
xmit.c b43: remove usage of deprecated noise value 2010-04-28 16:48:21 -04:00
xmit.h