mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
2bfefa4c96
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> |
||
---|---|---|
.. | ||
Makefile | ||
mtd_nandecctest.c | ||
mtd_oobtest.c | ||
mtd_pagetest.c | ||
mtd_readtest.c | ||
mtd_speedtest.c | ||
mtd_stresstest.c | ||
mtd_subpagetest.c | ||
mtd_torturetest.c |