linux-kernel-test/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
debugfs.c
debugfs.h
dma.c drivers/net/wireless/b43: Use kmemdup 2010-06-02 16:13:11 -04:00
dma.h
Kconfig
leds.c
leds.h
lo.c
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
phy_a.h
phy_common.c
phy_common.h
phy_g.c
phy_g.h
phy_lp.c
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
pio.c
pio.h
rfkill.c
rfkill.h
sdio.c
sdio.h
sysfs.c
sysfs.h
tables_lpphy.c
tables_lpphy.h
tables_nphy.c
tables_nphy.h
tables.c
tables.h
wa.c
wa.h
xmit.c b43: remove usage of deprecated noise value 2010-04-28 16:48:21 -04:00
xmit.h