tmp_suning_uos_patched/drivers/mtd/tests
Julia Lawall 2bfefa4c96 drivers/mtd: Use kzalloc
Use kzalloc rather than the combination of kmalloc and memset.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression x,size,flags;
statement S;
@@

-x = kmalloc(size,flags);
+x = kzalloc(size,flags);
 if (x == NULL) S
-memset(x, 0, size);
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2010-05-13 21:23:06 +01:00
..
Makefile mtd: add nand_ecc test module 2009-11-30 09:41:49 +00:00
mtd_nandecctest.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
mtd_oobtest.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
mtd_pagetest.c drivers/mtd: Use kzalloc 2010-05-13 21:23:06 +01:00
mtd_readtest.c drivers/mtd: Use kzalloc 2010-05-13 21:23:06 +01:00
mtd_speedtest.c drivers/mtd: Use kzalloc 2010-05-13 21:23:06 +01:00
mtd_stresstest.c drivers/mtd: Use kzalloc 2010-05-13 21:23:06 +01:00
mtd_subpagetest.c drivers/mtd: Use kzalloc 2010-05-13 21:23:06 +01:00
mtd_torturetest.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